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

RE: Check if a node-set exists

Subject: RE: Check if a node-set exists
From: "Martinez, Brian" <brian.martinez@xxxxxxxxxxx>
Date: Thu, 10 Jul 2003 09:28:09 -0600
xsl test if node exists
> From: Vivek Shinde [mailto:Vivek.Shinde@xxxxxxx]
> Sent: Thursday, July 10, 2003 9:09 AM
> To: XSL-List@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  Check if a node-set exists 
> 
> 
> Hi,
> Is there a statement in XSL that I can use to check if a 
> certain node-set exists in a XML document?

You mean something like this?

<xsl:if test="/document/some-node">

This will return false if the XPath expression doesn't evaluate to a
node-set.  But this is very, very basic, so I'm wondering if there's another
part to your question . . .

cheers,
b.

| brian martinez                           brian.martinez@xxxxxxxxxxx |
| lead gui programmer                                    303.357.3548 |
| cheap tickets, part of trip network                fax 303.357.3380 |
| 6560 greenwood plaza blvd., suite 400           englewood, co 80111 |
| cendant travel distribution services   http://www.cheaptickets.com/ |

 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.