xml editor

Supported platforms

Compatible with Windows7 & Mac OS X Snow Leopard

Ready for data server software
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

RE: [xsl] Testing type of a param


Subject: RE: [xsl] Testing type of a param
From: "Michael Kay" <mhkay@xxxxxxxxxxxx>
Date: Wed, 16 May 2001 06:30:02 +0100

> A param's type can be any of
>
>   string, number, boolean, node-set
>
> Within a called template I'd like to be able use <xsl:choose> to
> branch based on whether a parameter is a node-set or not.
>
> Is there a way to do this?

This came up a couple of months ago and I think the conclusion was that it
can't be done in pure XSLT.

There's an EXSLT extension function to test data type.

But as Steve Muench pointed out, you don't need it in this case.

Mike Kay


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



Current Thread
XML Editor | XML Author | WYSIWYG Editors | Schema Editor | XSD Documentation | XSL/XSLT Editor | XQuery | XML Databases | SVN Client
© 2002-2011 SyncRO Soft Ltd. All rights reserved. | Sitemap | Privacy Policy | This website was created & generated with <oXygen/>®XML Editor