/** * Specific configuration for the TRaX liaison. * @param xsltTask the XSLTProcess task instance from which this liaison * is to be configured. */ public void configure(final XSLTProcess xsltTask) { project = xsltTask.getProject(); final XSLTProcess.Factory factory = xsltTask.getFactory(); if (factory != null) { setFactory(factory.getName()); // configure factory attributes for (final Enumeration attrs = factory.getAttributes(); attrs.hasMoreElements();) { final XSLTProcess.Factory.Attribute attr = (XSLTProcess.Factory.Attribute) attrs.nextElement(); setAttribute(attr.getName(), attr.getValue()); } for (final XSLTProcess.Factory.Feature feature : factory.getFeatures()) { setFeature(feature.getName(), feature.getValue()); } } final XMLCatalog xmlCatalog = xsltTask.getXMLCatalog(); // use XMLCatalog as the entity resolver and URI resolver if (xmlCatalog != null) { setEntityResolver(xmlCatalog); setURIResolver(xmlCatalog); } // configure output properties for (final Enumeration props = xsltTask.getOutputProperties(); props.hasMoreElements();) { final XSLTProcess.OutputProperty prop = (XSLTProcess.OutputProperty) props.nextElement(); setOutputProperty(prop.getName(), prop.getValue()); } suppressWarnings = xsltTask.getSuppressWarnings(); traceConfiguration = xsltTask.getTraceConfiguration(); }
/** * Add the catalog to our internal catalog * * @param xmlCatalog the XMLCatalog instance to use to look up DTDs */ public void addConfiguredXMLCatalog(XMLCatalog xmlCatalog) { if(this.xmlCatalog==null) { this.xmlCatalog = new XMLCatalog(); this.xmlCatalog.setProject(getProject()); } this.xmlCatalog.addConfiguredXMLCatalog(xmlCatalog); }
/** * add an XMLCatalog as a nested element; optional. * @param catalog the XMLCatalog to use */ public void addConfiguredXMLCatalog( XMLCatalog catalog ) { xmlCatalog.addConfiguredXMLCatalog( catalog ); }
/** * Set the XMLCatalog object to callback. * @param xmlCatalog the XMLCatalog to use. */ public void setXMLCatalog(final XMLCatalog xmlCatalog) { this.xmlCatalog = xmlCatalog; }
/** * add an XMLCatalog as a nested element; optional. * @param catalog XMLCatalog to use */ public void addConfiguredXMLCatalog(XMLCatalog catalog) { xmlCatalog.addConfiguredXMLCatalog(catalog); }
/** * add an XMLCatalog as a nested element; optional. * @param catalog the XMLCatalog to use */ public void addConfiguredXMLCatalog(XMLCatalog catalog) { xmlCatalog.addConfiguredXMLCatalog(catalog); }
/** * Add the catalog to our internal catalog * * @param xmlCatalog the XMLCatalog instance to use to look up DTDs */ public void addConfiguredXMLCatalog(final XMLCatalog xmlCatalog) { this.xmlCatalog.addConfiguredXMLCatalog(xmlCatalog); }
/** * Get the XML catalog containing entity definitions * * @return the XML catalog for the task. */ public XMLCatalog getXMLCatalog() { xmlCatalog.setProject(getProject()); return xmlCatalog; }
/** * Add the catalog to our internal catalog * * @param aXmlCatalog * the XMLCatalog instance to use to look up DTDs */ public void addConfiguredXMLCatalog (@Nonnull final XMLCatalog aXmlCatalog) { m_aXmlCatalog.addConfiguredXMLCatalog (aXmlCatalog); log ("Added XMLCatalog " + aXmlCatalog, Project.MSG_DEBUG); }