This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
xsl:key confusion
- From: "Ian Hord" <ian at hord dot com>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Thu, 2 May 2002 17:45:32 +1000
- Subject: [xsl] xsl:key confusion
- Reply-to: xsl-list at lists dot mulberrytech dot com
Hi I am pretty new to the world of xslt and confused with the key function.
How do I reference a nodelist that is made up of nodes with no text or
attributes?
How do I check to see if there are any nodes in a key?
I have got the following lines to work, but don't know if they are the
correct way to do what I want
<xsl:key name="pumptestlist" match="pumptest" use="position()"/>
<xsl:choose>
<xsl:when test="count(key('pumptestlist', '1'))>0">
Thanks in advance for your help
Ian
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list