This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

test if a node exists...


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]