RE: [xsl] Check if a node-set exists

Subject: RE: [xsl] Check if a node-set exists
From: "Martinez, Brian" <brian.martinez@xxxxxxxxxxx>
Date: Thu, 10 Jul 2003 09:28:09 -0600
> From: Vivek Shinde [mailto:Vivek.Shinde@xxxxxxx]
> Sent: Thursday, July 10, 2003 9:09 AM
> To: XSL-List@xxxxxxxxxxxxxxxxxxxxxx
> 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.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