xsl-list
[Top] [All Lists]

Re: Check if a node-set exists

2003-07-10 08:38:29

Is there a statement in XSL that I can use to check if a certain
node-set exists in a XML document? 

You can't check if it exists but you can check if it is non empty
<xsl:if test="$x">
for example tests if te hnode set held in $x is empty or not.

David

________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



<Prev in Thread] Current Thread [Next in Thread>