You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by bu...@apache.org on 2004/08/19 23:38:54 UTC

DO NOT REPLY [Bug 30765] New: - Inconsistent support of redirect extension by Xalan and Xalan-XSLTC

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=30765>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=30765

Inconsistent support of redirect extension by Xalan and Xalan-XSLTC

           Summary: Inconsistent support of redirect extension by Xalan and
                    Xalan-XSLTC
           Product: XalanJ2
           Version: 2.6
          Platform: PC
        OS/Version: Other
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Xalan
        AssignedTo: xalan-dev@xml.apache.org
        ReportedBy: bdubausk@us.ibm.com


Redirect extension support is incompatible between 2 variants of Xalan. 

Namespace xmlns:redirect="http://xml.apache.org/xalan/redirect" is not 
supported by interpretive Xalan. It is however required by XSLTC. This 
prevents us from using the same stylesheets for both variants of Xalan 
(interpretive and XSLTC). 

TransformerFactory.newTemplates() fails on stylesheet using 
xmlns:redirect="http://xml.apache.org/xalan/redirect" namespace. This is when 
org.apache.xalan.processor.TransformerFactoryImpl is used as transformer. All 
is fine for XSLTC ("org.apache.xalan.xsltc.trax.TransformerFactoryImpl").

Example stylesheet (taken from http://xml.apache.org/xalan-
j/extensions_xsltc.html#redirect_ext). This stylesheet will cause failure 
during TransformerFactory.newTemplates() call.

<xsl:stylesheet 
   xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
   xmlns:xsltc="http://xml.apache.org/xalan/xsltc"
   xmlns:redirect="http://xml.apache.org/xalan/redirect"
   extension-element-prefixes="xsltc redirect"
   version="1.0">
   <xsl:template match="/">
     <xsl:text>This goes to standard output</xsl:text>
     <xsltc:output file="blob.xml">
       <xsl:text>This ends up in the file 'blob.xml'</xsl:text>
     </xsltc:output>
     <redirect:write file="blob2.xml">
       <xsl:text>This ends up in the file 'blob2.xml'</xsl:text>
     </redirect:write>
   </xsl:template>
</xsl:stylesheet>

---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org