[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

test if a node exists...


Subject: test if a node exists...
From: "Jean de Lavarene" <breux@xxxxxxxxx>
Date: Mon, 17 Jul 2000 19:24:44 +0200

Hello everybody,

I am trying to test the existance of a node in an XML document like this :

XML:
<list>
    <fr/>
    <gr/>
</list>

XSL template for list:
<xsl:if test="name()=fr">
then do something.

If the node fr is a child of list then do something... but this won't work. Any ideas?

Jean


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



Current Thread
Keywords