ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 15856] New: - xsl:include and xsl:import uri are not resolved in xslt task with catalog
Date Tue, 07 Jan 2003 20:03:15 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15856>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15856

xsl:include and xsl:import uri are not resolved in xslt task with catalog

           Summary: xsl:include and xsl:import uri are not resolved in xslt
                    task with catalog
           Product: Ant
           Version: 1.5.1
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Core tasks
        AssignedTo: ant-dev@jakarta.apache.org
        ReportedBy: ebelisar@ca.ibm.com


The problem is in method XSLTProcess.configureLiaison(File stylesheet)  - for 
TraX liaison, stylesheet is set and parsed before URI resolver is configured

To reproduce, add this wrapper.xsl file to <ANT_HOME>/etc/testcases/types
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                version='1.0'
                xmlns="http://www.w3.org/TR/xhtml1/transitional"
                exclude-result-prefixes="#default">

<xsl:import href="./xsl/xmlcatalog.xsl"/>

</xsl:stylesheet>

Add the following task to xmlcatalog.xml:
   <target 
    name        = "testimportwithcatalog" 
    description = "Test entity resolution in XML document called
from XSLT document() function using XMLCatalog">
    <delete
      quiet = "yes"
      file  = "result.out"/>
    <xslt
      basedir   = "${basedir}"
      destdir   = "${basedir}"
      extension = ".text"
      style     = "wrapper.xsl"
      in        = "xmlcatalog2.xml"
      out       = "result.out">
       <param
        name       = "outprop"
        expression = "val5"/>
    <xmlcatalog>
        <entity
          publicId = "./xsl/xmlcatalog.xsl"
          location = "xmlcatalog.xsl"/>
       </xmlcatalog>
    </xslt>
    <property file = "result.out"/>
    <!-- <echo message = "${val6}"/> -->
    <delete
      quiet = "yes"
      file  = "result.out"/>
  </target>

when executing this task I have this output:
Loading stylesheet G:\wsad_1121\eclipse\workspace\plugins\AntXSLTTest\anttest1
\wrapper.xsl
G:/wsad_1121/eclipse/workspace/plugins/AntXSLTTest/anttest1/wrapper.xsl:7:42: 
Error! Had IO Exception with stylesheet file: ./xsl/xmlcatalog.xsl Cause: 
java.io.FileNotFoundException: G:\wsad_1121
\eclipse\workspace\plugins\AntXSLTTest\anttest1\xsl\xmlcatalog.xsl (The system 
cannot find the path specified)

--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message