Subject: Re: [xsl] Issue with datatypes and standarad namespaces From: "Dimitre Novatchev" <dnovatchev@xxxxxxxxx> Date: Sun, 22 Jul 2007 09:32:09 -0700 |
Hello all,
With these two namespaces defined on an xsl:stylesheet element (XSLT 2.0)
xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xdt="http://www.w3.org/2005/04/xpath-datatypes"
Is it possible that, with some XSLT 2 processors, xdt:anyAtomicType is a validly recognized standard datatype.
The namespace you are quoting was in use (and changed its string value several times) before the XSLT 2.0 / XPath 2.0 sets of documents became W3C Recommendations.
-- Cheers, Dimitre Novatchev --------------------------------------- Truly great madness cannot be achieved without significant intelligence. --------------------------------------- To invent, you need a good imagination and a pile of junk ------------------------------------- You've achieved success in your field when you don't know whether what you're doing is work or play
Having recently downloaded some XSLT 2 code that the author claimed to work, I attempted to test it with Saxon SA 8.9.0.4.
Saxon SA spat the dummy ( even with schemaaware="false" ) reporting:
[saxon-xslt] XPST0003: SequenceType syntax error at char 0 in {xdt:anyAtomicType?}: [saxon-xslt] There is no imported schema for namespace http://www.w3.org/2005/02/xpath-datatypes
I boiled the code down to ( note: as="xdt:anyAtomicType?" ) :-
<xsl:function name="my:testfunc"> <xsl:param name="arg" as="xdt:anyAtomicType?"/> <xsl:sequence select="$arg"/> </xsl:function>
When I changed the above to the following ( note: as="xs:anyAtomicType?" ), Saxon was happy :-
<xsl:function name="my:testfunc"> <xsl:param name="arg" as="xs:anyAtomicType?"/> <xsl:sequence select="$arg"/> </xsl:function>
I can only conclude that the author must have tested his/her code with a different XSLT 2 processor.
Thanks to all for your help.
Justin Johansson
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Issue with datatypes and stan, Justin Johansson | Thread | Re: [xsl] Issue with datatypes and , Justin Johansson |
Re: [xsl] does instant saxon 6.5.3 , Sam Byland | Date | [xsl] Issue with datatypes and stan, Justin Johansson |
Month |