This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Using xsl to test value of node
- From: David Carlisle <davidc at nag dot co dot uk>
- To: xsl-list at lists dot mulberrytech dot com
- Cc: XSL-List at lists dot mulberrytech dot com, ahmad at dcs dot qmul dot ac dot uk
- Date: Thu, 13 Dec 2001 15:34:18 GMT
- Subject: Re: [xsl] Using xsl to test value of node
- References: <3C18C6ED.CA445389@dcs.qmul.ac.uk>
- Reply-to: xsl-list at lists dot mulberrytech dot com
<xsl:if test() ="44639"/>
XSL stylesheets have to be XML XML attribute names can't include ()
so this won't get past the XML parser, so the xslt engine won't see the
stylesheet. You want
<xsl:if test=".=44639"/>
<xsl:apply-templates select="LOCATION_ID"/>
in that template the current node is CHARACTER_ID so the above XPath
would select LOCATION_ID children of CHARACTER_ID nodes, but there are
not any, you want
<xsl:apply-templates select="../LOCATION_ID"/>
David
_____________________________________________________________________
This message has been checked for all known viruses by Star Internet
delivered through the MessageLabs Virus Scanning Service. For further
information visit http://www.star.net.uk/stats.asp or alternatively call
Star Internet for details on the Virus Scanning Service.
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list