Community
Participate
Working Groups
Build Identifier: I20110310-1119 I would like to use the Xml Catalog feature to resolve xsl include/import reference (see: -URIRESOLVER option of xalan). In the preference window "XML Catalog" it is possible to enter a catalog entry of type URI on for taglib definitions, DTD files and XSD files. I added manually a catalog with a URI key referencing a xsl file (I did importing a manually modified catalog), but the catalog resolution doesn't work for include and import on xsl files. Reproducible: Always Steps to Reproduce: 1. Create a file with this content: <?xml version="1.0"?> <catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog"> <uri name="http://www.mysite.com/library/constants.xsl" uri="library/constants.xsl"/> </catalog> 2. import the file as catalog 3. create a new xsl file with this import element <xsl:import href="http://www.mysite.com/library/constants.xsl"/> 4. try to reference a template or a variable of the library/constants.xsl file
If you add the XML Commons resolver to your runtime transformation, then it will resolve the includes during transformation. The XSL editor already supports the built in XML Catalog resolver for WTP. You just need to import your Catalog into the WTP Catalog, and then the editor should resolve your import and includes. If it doesn't then we have a bug.
Created attachment 193330 [details] Test case project