[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: David Carlisle <davidc@xxxxxxxxx>
Date: Mon, 19 Jan 2004 16:27:02 GMT
Re:  Exsl functions in xslt 2
  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?

David

-- 
http://www.dcarlisle.demon.co.uk/matthew

________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

 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.