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

RE: How to test if the variable contains nodeset or no

Subject: RE: How to test if the variable contains nodeset or not
From: Jarno.Elovirta@xxxxxxxxx
Date: Thu, 5 Jun 2003 15:54:09 +0300
if variable contains string
Hi,

> Now I need to test, if a parameter within called template 
> contains nodeset
> or it contains string, because when it is not handled I get 
> exception > The
> value is not a node-set

There's no XSLT way of doing this. See <http://exslt.org/exsl/functions/object-type/index.html>. If extension function is out of the question, then you just have to make sure the input is always either a string or a node-set... well, you can handle the node-set as if it was a string, but still.

Cheers,

Jarno - Nick Sentience: March 2003 Mix

 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.