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

Parameter of type xs:anyURI

Subject: Parameter of type xs:anyURI
From: Martynas Jusevicius <martynas.jusevicius@xxxxxxxxx>
Date: Tue, 24 Aug 2010 15:01:08 +0200
 Parameter of type xs:anyURI
Hey list,

I don't get how to define a parameter of type xs:anyURI. I try it like this:

<xsl:param name="base-uri" select="'http://www.google.com'" as="xs:anyURI"/>

But Saxon 9 gives me an error:
"Error at xsl:param on ...:
XTTE0600: Required item type of value of parameter $base-uri is
xs:anyURI; supplied value has item type xs:string"

Do I always have to cast a string value with xs:anyURI()?
What if I pass the value from Java, do I need 2 parameters then -- one
for the string value, and the other one casted as xs:anyURI?

Thanks,

Martynas
semantic-web.dk

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.