Re: Conditional-processing im Schema

"Henry S. Thompson" wrote:

> "San Coulibaly" <San.Coulibaly@bau.fh-giessen.de> writes:
>
> > I constructed a schema for a data exchange. During this exchange it gives a
> > few rules to consider, for example: if this element has this value, then
> > should this one element not in the dokument appear ... or if this element
> > has this value, this one element is supposed to receive this other value
> > then ...
> > The w3c/workgroup say,  this is supposed to be in next scheme possible for
> > versions (Conditional processing)...(das is unfavorable to me since I am
> > supposed to yield my master's thesis at the end of September)..
> > However, I heard, it can be possible with other tools.. ...
> > somebody can help me??
>
> Try Schematron [1]

Or why not mix the W3C Schema language with Schematron. To define the structure
of your XML documents in Schematron can be very cumbersome so on a number of
occasions I've specified the structure of my document in XML Schema and then
added Schematron rules in xs:appinfo to define the conditional relationships. See
[2] for an example and some links.

Cheers,
/Eddie

[2] http://lists.w3.org/Archives/Public/xmlschema-dev/2001Aug/0149.html

> [1] http://xml.ascc.net/xml/resource/schematron/schematron.html
> --
>   Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh
>           W3C Fellow 1999--2001, part-time member of W3C Team
>      2 Buccleuch Place, Edinburgh EH8 9LW, SCOTLAND -- (44) 131 650-4440
>             Fax: (44) 131 650-4587, e-mail: ht@cogsci.ed.ac.uk
>                      URL: http://www.ltg.ed.ac.uk/~ht/

Received on Sunday, 16 September 2001 20:34:36 UTC