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=12125>.
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=12125

XSLTC: XPath expressions using prefixed element names fail

           Summary: XSLTC: XPath expressions using prefixed element names
                    fail
           Product: XalanJ2
           Version: CurrentCVS
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Xalan-Xsltc
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


When mixing prefix's and default namespaces on literal result elements xpath 
expressions eariler on or later on in the stylesheet fail.  For example the 
below stylesheet failes (doesn't display the result of the <xsl:value-of/>):

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; 
xmlns:cm="http://ns1/";>
        <xsl:template match="/">
                <runOptions xmlns="http://ns1/"/>
                <xsl:value-of select="/root/cm:runOptions"/>
        </xsl:template>
</xsl:stylesheet>

This stylesheet works if you do any one of the following:
-comment out the <runOptions/> element.
-change the namespace of the <runOptions/> element
-change the select attribute of the <xsl:value-of/> "/root/*[name() 
= 'cm:runOptions']"

Reply via email to