Let me thank Dr. Kay for his responsiveness and understanding.
With the Saxon 8.7 - based XPath2.0 Visualizer the following
expression would return an error message, saying that xs:int is a type
not allowed in a basic XSLT processor:
Such a message would not seem justified to users of the XPath 2.0
Visualizer, who might not have even suspected XSLT was being used
Being able to reference at least the builtin XS types is necessary in
the process of learning XPath 2.0. Due to the kind understanding of
Dr. Kay the XPath 2.0 Visualizer should now have no problems in
providing this feature.
On 4/24/06, Michael Kay <mike@...> wrote:
> The spec for a "basic XSLT processor" allows the types listed at
> that is:
> * All the primitive atomic types defined in [XML Schema Part 2], with
> the exception of xs:NOTATION. That is: xs:string, xs:boolean, xs:decimal,
> xs:double, xs:float, xs:date, xs:time, xs:dateTime, xs:duration, xs:QName=
> xs:anyURI, xs:gDay, xs:gMonthDay, xs:gMonth, xs:gYearMonth, xs:gYear,
> xs:base64Binary, and xs:hexBinary.
> * The derived atomic type xs:integer defined in [XML Schema Part 2].
> * The types xs:anyType and xs:anySimpleType.
> * The following types defined in [XPath 2.0]: xdt:yearMonthDuration,
> xdt:dayTimeDuration, xdt:anyAtomicType, xdt:untyped, and xdt:untypedAtomi=
> This is what Saxon-B allows by default.
> In principle, a Basic XSLT Processor doesn't allow other built-in types (=
> example xs:nonNegativeInteger). However, there is a clause:
> "An implementation may define mechanisms that allow additional schema
> components to be added to the in-scope schema components for the
> and I believe that this makes saxon:allow-all-built-in-types a conformant
> The reason that Basic XSLT allows only the primitive types and not the
> derived built-in types is essentially that you can't do anything useful w=
> derived types in a non-schema-aware processor. There are no functions and
> operators for these types, so the only thing you could do would be to cas=
> to the derived type, which is fairly pointless. However, Saxon-B contains
> code to support all the derived types, because it's needed for XQuery whi=
> chose a different cut-off in its conformance rules; so I decided to make =
> functionality available via this extension. The requirement that triggere=
> it came from Dimitre Novatchev, who was generating XSLT stylesheets to
> exercise XPath expressions and visualize their results.
> The spec would allow this to be achieved by a switch in the API, but I'm =
> sure this is a good idea. If the stylesheet is using extensions, it's not=
> bad idea if it says so.
> Michael Kay
> > -----Original Message-----
> > From: saxon-help-admin@...
> > [mailto:saxon-help-admin@...] On Behalf Of
> > Erik Bruchez
> > Sent: 24 April 2006 23:51
> > To: saxon-help@...
> > Subject: [saxon] saxon:allow-all-built-in-types=3D"yes"
> > All,
> > Reading the changtes for 8.7.1:
> > http://www.saxonica.com/documentation/changes/intro.html
> > Does this mean that as of this version, running any
> > stylesheet using as=3D"xs:something" in the basic processor
> > will need the saxon:allow-all-built-in-types to run?
> > In that case, I have a few questions:
> > o Is there a way to enable this programmatically instead of
> > using the extension attribute?
> > o Doesn't adding an extension attribute to change this
> > behavior suddenly make the processor non-compliant?
> > o Am I the only one to think the spec is broken if it doesn't
> > allow a conformant implementation to support just simple
> > types, which have proven to be extremely useful?
> > Thanks,
> > -Erik
> > -------------------------------------------------------
> > Using Tomcat but need to do more? Need to support web
> > services, security?
> > Get stuff done quickly with pre-integrated technology to make
> > your job easier Download IBM WebSphere Application Server
> > v.1.0.1 based on Apache Geronimo
> > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&
> > dat=3D121642
> > _______________________________________________
> > saxon-help mailing list
> > saxon-help@...
> > https://lists.sourceforge.net/lists/listinfo/saxon-help
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job ea=
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronim=
> saxon-help mailing list
Truly great madness cannot be achieved without significant intelligence.