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

RE: rephrased: passing parameters to generic templates

Subject: RE: rephrased: passing parameters to generic templates
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Wed, 12 Apr 2006 17:24:48 +0100
generics passing strings
> > In XPath 2.0 you could get an error for relying on this,
> > however, since in 2.0 a sequence of more than one node
> > can't be converted into a string.
>   It's not what I understand from '5.7.2 (in XSLT 2.0, indeed, not
> XPath).

5.7.2 is about constructing nodes (e.g. text nodes or attribute nodes): it's
not about conversion of values to a string. In this situation, multiple
strings are implicitly concatenated, sometimes with a separator.

In 2.0, if you try to pass a sequence of nodes to a function that expects a
single string (for example, the substring() function), or if you try to
convert such a sequence to a string directly by using string() or
xs:string(), you get a type error.

Michael Kay

Current Thread


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.
First Name
Last Name
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.