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

NullPointerException when sorting using a child of a variable.





------- Additional Comments From [EMAIL PROTECTED]  2003-06-19 14:39 -------
I was under the impression that it was only converted to a RTF if the value was
specified inside the body of the xsl:variable element (section 11.1 of the XSLT
spec certainly seems to imply that it's possible to bound a node-set to a
variable), ie:

<xsl:variable name="request"><xsl:value-of select="request"/></xsl:variable>

Would mean a RTF would be bounded to $request.

If that is not the case, then the following stylesheet shouldn't work (it
currently does in 2.5.1):

<?xml version='1.0'?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; version="1.0">
<xsl:output method="html"/>

  <xsl:template match="/">

    <xsl:variable name="request" select="request"/>

    <xsl:value-of select="$request/child"/>

  </xsl:template>
</xsl:stylesheet>

Either way the NPE isn't the best error! :)

Reply via email to