OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   RE: [xml-dev] Validation vs performance - was Re: [xml-dev] Fast text ou

[ Lists Home | Date Index | Thread Index ]
  • To: "'John Cowan'" <cowan@ccil.org>
  • Subject: RE: [xml-dev] Validation vs performance - was Re: [xml-dev] Fast text output from SAX?
  • From: "Alessandro Triglia" <sandro@mclink.it>
  • Date: Tue, 20 Apr 2004 00:25:25 -0400
  • Cc: <xml-dev@lists.xml.org>
  • Importance: Normal
  • In-reply-to: <20040420041006.GB19958@ccil.org>



> -----Original Message-----
> From: John Cowan [mailto:cowan@ccil.org] 
> Sent: Tuesday, April 20, 2004 00:10
> To: Alessandro Triglia
> Cc: xml-dev@lists.xml.org
> 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).

Alessandro Triglia


> 
> -- 
> But that, he realized, was a foolish            John Cowan
> thought; as no one knew better than he          
> jcowan@reutershealth.com
> that the Wall had no other side.                
> http://www.ccil.org/~cowan
> --Arthur C. Clarke, "The Wall of Darkness"
> 





 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS