xsl-list
[Top] [All Lists]

Re: [xsl] Typing Variable as AnyURI - Problem

2012-09-13 03:06:10
On 13 September 2012 08:47, Ihe Onwuka 
<ihe(_dot_)onwuka(_at_)googlemail(_dot_)com> wrote:
On Thu, Sep 13, 2012 at 8:31 AM, Michael Kay <mike(_at_)saxonica(_dot_)com> 
wrote:

Your call to xsl:apply-templates is returning a sequence of text nodes. A
sequence of text nodes is not a string (nor is an xs:anyURI), and it cannot
be converted to a string by calling the string() or xs:anyURI() functions.


Yes, but what threw me off the scent is that  casting the variable to
xs:anyURI as in the code example I posted worked.

So whats the difference between what goes when the variable is cast as
xs:anyURI and what goes on when the variable is typed xs:anyURI

Adjacent text node merging.



-- 
Andrew Welch
http://andrewjwelch.com

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--