[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [xml-dev] PSVI using existing infoset items
- From: Francis Norton <firstname.lastname@example.org>
- To: Rick Jelliffe <email@example.com>
- Date: Tue, 16 Oct 2001 19:09:52 +0100
Thank you Rick, never had one of my transforms called amazing before!
The current state of play is at
http://www.schemavalid.com/utils/typeTagger.zip, and as I've mentioned
on xsl-list, it will compile a typeTagger transform from a schema. The
typeTagger transform will mark up all elements in a compliant document
with their unique element name and unique type name. So far it seems to
handle global elements, local
elements, global types, anonymous types and refs correctly, and ought to
handle xsd:include too, though I haven't tested that. It doesn't yet
handle inheritance by extension or redefines. And frankly it's probably
ready for a bit of code refactoring. But the overall code structure is a
lot simpler than I expected, and it may have some tutorial value.
It does show that there is an interesting and possibly useful division
of schema processing between type recognition and full-on validation.
I'll definitely be working on it, but if anyone wants to take on a
feature or two, or to build an equivalent for Relax NG, I'd be delighted
Rick Jelliffe wrote:
> From: "Eric van der Vlist" <firstname.lastname@example.org>
> > Why not add the additional information as elements and attributes from a
> > specific namespace?
> > Isn't it worth considering?
> Francis Norton has shown me an amazing XSLT script he wrote which adds the element type information from an XML Schema to an instance. It sounds like the kid of thing you are suggesting.
> (Francis has suggested that using it allows Schematron contexts access to PSVI type information. This would be much more satisfactory for, in particular Schematron rules embedded in XML Schemas.)
> Rick Jelliffe
> The xml-dev list is sponsored by XML.org <http://www.xml.org>, an
> initiative of OASIS <http://www.oasis-open.org>
> The list archives are at http://lists.xml.org/archives/xml-dev/
> To subscribe or unsubscribe from this elist use the subscription
> manager: <http://lists.xml.org/ob/adm.pl>