[XSLT2.0] 21.1 Basic XSLT Processor

While I'm happy to see that schema support is not mandatory in XSLT, I'm
a little concerned that it appears impossible to write a stylesheet for
a schema aware processor that falls back gracefully on a basic one.

XSLT has always had quite good support for forwards and backwards
compatible behaviour and run-time testing for (and avoidance
of) non-implemented extensions.

However


  [ERR XT1660] A basic XSLT processor must signal a static error if the
  stylesheet includes an [xsl:]type attribute, or an [xsl:]validation or
  default-validation attribute with a value other than strip. 

seems to mean that I can't go

<xsl:when test="system-property('xsl:is-schema-aware')">
... xsl:validation ...
<xsl:otherwise>
  ... just relax ....



Wouldn't it be possible for a basic processor to simply ignore
schema-import and then have run time rather than static errors if any
schema specific features are encountered?

David



________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

Received on Wednesday, 17 December 2003 06:29:53 UTC