xsl-list
[Top] [All Lists]

RE: Check if a node-set exists

2003-07-10 08:28:09
From: Vivek Shinde [mailto:Vivek(_dot_)Shinde(_at_)sas(_dot_)com]
Sent: Thursday, July 10, 2003 9:09 AM
To: XSL-List(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] 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(_dot_)martinez(_at_)cendant(_dot_)com |
| 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



<Prev in Thread] Current Thread [Next in Thread>