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

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Re: Questions on XML syntax and conformance issues

[ Lists Home | Date Index | Thread Index ]
  • From: David Brownell <david-b@pacbell.net>
  • To: Richard Tobin <richard@cogsci.ed.ac.uk>
  • Date: Wed, 08 Mar 2000 13:11:38 -0800

Richard Tobin wrote:
> 
>	[ re EMPTY content model ]
>
> > And: if WS is allowed, how about comments or PIs?
> 
> Looking at the spec, it appears not.  This seems a little surprising
> to me, since content models usually only restrict element and text
> content.

... and allow whitespace!  It'd be a lot simpler if EMPTY just
were interpreted to mean "no elements or #PCDATA allowed".  One
less special case to worry about.

On the other hand, none of the content model validity restrictions
mention comments or PIs.  It's safest to read that as meaning that
there are no restrictions ... else every implementor would write
their own proprietary set of restrictions.

- Dave

***************************************************************************
This is xml-dev, the mailing list for XML developers.
To unsubscribe, mailto:majordomo@xml.org&BODY=unsubscribe%20xml-dev
List archives are available at http://xml.org/archives/xml-dev/
***************************************************************************




 

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

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