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

[EMAIL PROTECTED] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID



------- Additional Comments From [EMAIL PROTECTED]  2001-09-17 08:55 -------
Peter,

I believe that the bug is in you stylesheet.  The nodeset returned by the key
function are all element2 nodes.  These do not have additional subelements 
of 'element2' so the sort fails.  Change the sort selection from 
"element2/name" to just "name" and things work just fine.

<xsl:key name="testkey" match="element1/element2" use="key-element"/>
<xsl:template match="element1">
   <test>
        <xsl:apply-templates select="key('testkey', 'A')">
                <xsl:sort select="element2/name" order="ascending"/>
        </xsl:apply-templates>
   </test>
</xsl:template>

Reply via email to