Subject: Re: [xsl] Parameter of type xs:anyURI From: David Carlisle <davidc@xxxxxxxxx> Date: Tue, 24 Aug 2010 14:04:35 +0100 |
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?
________________________________________________________________________ The Numerical Algorithms Group Ltd is a company registered in England and Wales with company number 1249803. The registered office is: Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Parameter of type xs:anyURI, Martynas Jusevicius | Thread | Re: [xsl] Parameter of type xs:anyU, Martynas Jusevicius |
[xsl] Parameter of type xs:anyURI, Martynas Jusevicius | Date | Re: [xsl] Parameter of type xs:anyU, Martynas Jusevicius |
Month |