[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: test if a node exists...

Subject: RE: test if a node exists...
From: "Dudley, Mark" <Mark.Dudley@xxxxxxxxxxxxx>
Date: Mon, 17 Jul 2000 13:38:09 -0400
xsl test node exists
try <xsl:if test="name(.)='fr'">

Mark Dudley
Xerox, Corp.

-----Original Message-----
From: Jean de Lavarene [mailto:breux@xxxxxxxxx]
Sent: Monday, July 17, 2000 1:25 PM
To: xsl-list@xxxxxxxxxxxxxxxx
Subject: 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


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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.