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

RE: Getting the data type of an element

Subject: RE: Getting the data type of an element
From: "Michael Kay" <mhk@xxxxxxxxx>
Date: Tue, 13 Jan 2004 13:24:35 -0000
xsl data type
I don't know about MSXML4, but in XSLT 2.0 you do this with

test="data(.) instance of xs:boolean"

Michael Kay

> -----Original Message-----
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx 
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of 
> Anderson, Rick A
> Sent: 13 January 2004 00:33
> To: 'XSL-List@xxxxxxxxxxxxxxxxxxxxxx'
> Subject:  Getting the data type of an element
> 
> 
> Hi,
> I want to be able to convert the "true" and "false" strings 
> to "1" and "0", respectively, when I get the value of a 
> boolean type element. However, I want to be sure the XSD 
> schema has defined the element as type boolean, and it is not 
> just a string element with the value "true". I think I need 
> to know the data type of an element, but I cannot find a 
> MSXML4 property or method that returns this type information, 
> using the schema.
> 
> Does anyone know how I can do it?
> Thanks.
> 
> Richard A. Anderson, NCR Corporation
> (519) 884-1710 X5543
> (519) 884-0610 (fax)
> 
> 
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> 


 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.