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

Re: Finding if a node exists

Subject: Re: Finding if a node exists
From: "cutlass" <cutlass@xxxxxxxxxxx>
Date: Tue, 12 Mar 2002 16:01:28 -0000
xsl node exists
a processor intensive method would be


<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
 <xsl:template match="/">

 <xsl:variable name="test" select="boolean(//a)"/>

 </xsl:template>
</xsl:stylesheet>


where the node u are looking for is a, if a is present it would be true

the result is placed in a variable named test.

though this may be optimised if u tell us a little bit more of the situation
u want to achieve.

cheers, jim fuller


----- Original Message -----
From: "Robin Samways" <rsamways@xxxxxxxxxxxxx>
To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Tuesday, March 12, 2002 3:54 PM
Subject:  Finding if a node exists


> Hi all,
>
> How could I check an entire xml document for the existence of one
> particular node, before determining to do something with its contained
> information (if any)?
>
> Thanks..
> Robin..
>
>  Robin Samways, Web Applications Developer
>  Concept Interactive Inc.
>  405 Riverview Dr. Chatham, ON, N7M 5J5
>  www.conceptinc.ca
>  t | 519.436.0303 ext. 230
>  f | 519.436.1738
>
>
>  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.