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

RE: Exsl functions in xslt 2

Subject: RE: Exsl functions in xslt 2
From: "Andrew Welch" <AWelch@xxxxxxxxxxxxxxx>
Date: Tue, 20 Jan 2004 08:40:39 -0000
exsl functions
>   I tried this but of course got problems with data typing.  I tried
>   having a stylesheet with version="2.0" import a stylesheet with
>   version="1.0" and vice versa, but both produced the same 
> set of errors
>   (with Saxon 7.8).
> 
> 
> Don't blame me:-)
> 
> seriously, You could consider making a comment to the 
> official xslt2 comment list outlining where backward 
> compatibility isn't compatible enough. I'm sure real examples 
> are helpful to them at this stage.
> 
> 
> > ....but msxml4 complains about the 'xs:' namespace.
> You could define javascript  xs:integer() and xs:string () in 
> the xs namespace using msxsl:script
> 
> But actually don't the xpath 1 (and 2) functions number() and 
> string() avoid these errors:
> 
>   Required type of first argument of format-number() is 
> number; supplied
>   value has type xs:string
> 
>   and
> 
>   Required type of first argument of concat() is xs:string; supplied
>   value has type xs:integer
> 
> so you could use number() rather than xs:integer and it 
> should work in xslt1 shouldn't it?

It does, works like a charm (far too obvious! :) 

Thanks,

andrew

 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.