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] Element content

[ Lists Home | Date Index | Thread Index ]

From: "David LeBlanc" <whisper@oz.net>
 
> A question has arisen about element content. I'm reasonably sure I've read
> that it's illegal for an element to contain itself either directly or
> indirectly. Is this correct, and if so, can someone point me to the relevant
> section of the XML Recommendation please?
 
No such constraint exists in XML.

SGML provided a facility, the exclusion exception, to all this constraint to be specified.
You can also sepcify it trivially in Schematron.

Topologi's "Editor's Concrete Syntax" uses the SGML '97 facility of "amply-tagged", which
does have the restriction that an element cannot directly contain itself, which allows
an implication policy for ommitted end-tags, see 
http://www.topologi.com/resources/pdfs/ECS.pdf

Cheers
Rick Jelliffe




 

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

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