Lists Home |
Date Index |
- To: "'John Cowan'" <email@example.com>
- Subject: RE: [xml-dev] Validation vs performance - was Re: [xml-dev] Fast text output from SAX?
- From: "Alessandro Triglia" <firstname.lastname@example.org>
- Date: Tue, 20 Apr 2004 00:25:25 -0400
- Cc: <email@example.com>
- Importance: Normal
- In-reply-to: <20040420041006.GB19958@ccil.org>
> -----Original Message-----
> From: John Cowan [mailto:firstname.lastname@example.org]
> Sent: Tuesday, April 20, 2004 00:10
> To: Alessandro Triglia
> Cc: email@example.com
> Subject: Re: [xml-dev] Validation vs performance - was Re:
> [xml-dev] Fast text output from SAX?
> Alessandro Triglia scripsit:
> > Of course, if you want that kind of flexibility and still
> be able to
> > use schema-based validation, you can write your schema in
> such a way
> > that it accepts both the attribute and the child element,
> and make the
> > attribute not required and the element minOccurs zero.
> Then you can
> > impose an application-level constraint that the element and the
> > attribute must (should?) not both be present at the same time.
> RELAX NG, however, can handle this directly at the schema
> level by defining a choice between a child element and an attribute.
I know. We have already started a discussion in the ASN.1 group on whether
and how to support this in ASN.1, and there is agreement on relaxing some of
the current restrictions. This will likely be handled by an amendment to
XER (2005 most likely).
> But that, he realized, was a foolish John Cowan
> thought; as no one knew better than he
> that the Wall had no other side.
> --Arthur C. Clarke, "The Wall of Darkness"