checking if child exists

Subject: checking if child exists
From: ".::romina::." <romina@xxxxxxxxxxxx>
Date: Sat, 24 Jun 2000 10:27:17 -0300
Hello...
I wanted to know if there's a way with xslt (i'm sure there is) to check if
a child of a node exists. For eg.

<somethingbig>
<law>
<parag n="1">yadda yadda yadda</parag>
<parag n="2"><item nb="1">blah</item> <item nb="2">blaah</item></parag>
<parag n="3">something else</parag>
</law>
</somethingbig>

I need to check if there's the child node <item> and if it exists to show
the value of it and if it doesnt exist... well to go on checking for nodes.

Thanks in advance


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


Current Thread