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

NullPointerException for xsl:sort with xsl:variable in a relative local path in the 
expression

[EMAIL PROTECTED] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|NullPointerException with   |NullPointerException for
                   |document() in a global      |xsl:sort with xsl:variable
                   |xsl:variable                |in a relative local path in
                   |                            |the expression



------- Additional Comments From [EMAIL PROTECTED]  2003-11-24 16:08 -------
This error can be reproduced with following case. If replace the expression 
inside xsl:sort with "$breakingnews", it works fine. It should relate to 
xsl:sort and using xsl:variable as part of a relative local path inside the 
xpath expression;

<xsl:template match="/">
        <xsl:variable name="breakingnews" select="pages/commons"/>
        <xsl:apply-templates select="pages/commons/menu">       
                <xsl:sort data-type="number" order="descending" select="count
($breakingnews/menu)"/>                 
        </xsl:apply-templates>
</xsl:template>
<xsl:template match="menuitem">
        <xsl:copy-of select="."/>
</xsl:template>

Reply via email to