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

Re: Typing Variable as AnyURI - Problem

Subject: Re: Typing Variable as AnyURI - Problem
From: Andrew Welch <andrew.j.welch@xxxxxxxxx>
Date: Thu, 13 Sep 2012 09:05:57 +0100
Re:  Typing Variable as AnyURI - Problem
On 13 September 2012 08:47, Ihe Onwuka <ihe.onwuka@xxxxxxxxxxxxxx> wrote:
> On Thu, Sep 13, 2012 at 8:31 AM, Michael Kay <mike@xxxxxxxxxxxx> 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

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.