[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: multiple schemas, annotations


multiple xpath filters
Simon St.Laurent wrote:

> His system uses schemas in a number of ways - mostly as gateways - but
> some of those gates are wider than others.  Documents have to pass only
> very basic validation on initial submission but the requirements get
> stricter as documents are sorted and get closer to their final
> destination.  If I remember his system right, some of that reflects
> document evolution while in the system while some of it reflects a
> growing awareness of what the document should look like over the course
> of categorization.

New jargon opportunity - content firewall.


> In general, though, this multi-schema approach seems like an opportunity
> to create more flexible piplelines than what I'll call the
> schema-as-contract model, in which all documents going through a process
> are expected to conform to a single schema.  It reflects local
> processing needs and provides support for documents to evolve over time
> rather than arrive full-grown.  It may not be for everyone, but it's
> something I expect to see happening more often, even in more
> data-oriented situations.

A similar effect can be achieved with a pipeline of XPath filters. 
Consider that an XPath assertion a good unit testing technique for 
XML generation, if you didn't have a schema to hand.

Another plus is that you can mix amd match schemas from different 
languages and adminstrations. Nicely organic, given that One True 
Domain Models don't always work out in practice.


> This approach also raises interesting questions about schema languages
> which annotate documents with additional information, typically
> attributes - notably DTDs and WXS.  While I have doubts about the
> practice generally, this kind of annotation can be very useful for some
> kinds of transformative interpretation, notably architectural forms.

What's useful about this approach is that you can pepper a document 
with attributes without mucking about with document structure or 
leaving <any/> slots all over the place. Attributes are easy to ignore.


> It also suggests to me that it might be wise to create an annotation
> engine separate from schema validation.  RELAX NG's core lacks
> annotation facilities by design, and all of the schema annotation
> approaches come with their own baggage.  Perhaps the DSDL folks are
> already discussing this.

I've always liked the XLink idiom for RDF.

Bill de hÓra

-- 
Technical Architect
Propylon
http://www.propylon.com


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.