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]

RE: test if a node exists...


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

> <xsl:if test="name()=fr">

use
<xsl:if test="fr">

What you have written tests if the name of the current node is the same as
the contents of the <fr> element child.

Mike Kay


 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]