[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Validation vs performance - was Re: Fast text ou
> -----Original Message----- > From: John Cowan [mailto:cowan@c...] > Sent: Tuesday, April 20, 2004 00:10 > To: Alessandro Triglia > Cc: xml-dev@l... > Subject: Re: Validation vs performance - was Re: > 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). Alessandro Triglia > > -- > But that, he realized, was a foolish John Cowan > thought; as no one knew better than he > jcowan@r... > that the Wall had no other side. > http://www.ccil.org/~cowan > --Arthur C. Clarke, "The Wall of Darkness" >
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|