[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

RE: [xsl] schemas and xslt 2.0 (was something else)


Subject: RE: [xsl] schemas and xslt 2.0 (was something else)
From: "Michael Kay" <mhk@xxxxxxxxx>
Date: Sat, 11 Sep 2004 20:07:36 +0100

You can of course validate your input against a Relax-NG schema, but
Relax-NG isn't designed to generate type information, only to give a
yes-or-no answer. So it doesn't produce any output that would be useful as
input to XSLT processing.

One day I hope to have the time to explore the use of alternative schema
languages with Saxon - but my priorities for development are always first to
conform to the spec, then to think about extensions. On the output side, for
example, there's no reason why integrating result tree validation with
stylesheet processing shouldn't work just as well with Relax NG as with XML
Schema.

Michael Kay 

> -----Original Message-----
> From: Bruce D'Arcus [mailto:bdarcus@xxxxxxxxxxxxx] 
> Sent: 11 September 2004 19:42
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: [xsl] schemas and xslt 2.0 (was something else)
> 
> 
> On Sep 11, 2004, at 2:21 PM, Michael Kay wrote:
> 
> > Saxon-SA implements the "schema-aware" facilities of the XSLT 2.0 
> > working
> > draft. This means you can:
> >
> > - validate your input documents against a schema
> 
> How tied to XML Schema is this?
> 
> While I generate XML Schemas, I author in RELAX NG, and often rely on 
> features unsupported elsewhere (such as attribute-based validation).
> 
> Bruce


Current Thread