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

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   RE: Recursivity

[ Lists Home | Date Index | Thread Index ]
  • From: "John Evdemon" <john.evdemon@xmls.com>
  • To: <xml-dev@xml.org>
  • Date: Fri, 18 Feb 2000 15:10:17 -0500

Most XML parsers should support your example as long as you code it in the
following manner:

<!ELEMENT TOTO ( #PCDATA | TOTO )* >

e.g.: The PCDATA must come first and the asterisk is required.

>From the spec:
Examples of mixed content declarations:

<!ELEMENT p (#PCDATA|a|ul|b|i|em)*>
<!ELEMENT p (#PCDATA | %font; | %phrase; | %special; | %form;)* >
<!ELEMENT b (#PCDATA)>

Hope this helps.

John Evdemon
XML Solutions
http://www.xmls.com

-----Original Message-----
From: owner-xml-dev@xml.org [mailto:owner-xml-dev@xml.org]On Behalf Of
Jean Georges PERRIN
Sent: Friday, February 18, 2000 4:33 AM
To: xml-dev@xml.org
Subject: Recursivity




Is it possible to have recursivity in XML Documents / DTD... Some parsers
seem to like it, others not...

Something like :
<TOTO><TOTO>hello</TOTO><TOTO>world</TOTO></TOTO>

<!ELEMENT TOTO ( #PCDATA | TOTO ) >

Any idea ? Specs?

Jean Georges PERRIN
--
Four J's Development Tools (www.4js.com)
jgp@4js.com - Tel +33 (0)3 88 18 61 20 - Fax +33 (0)3 88 18 61 21
--
CAUTION: import com.fourjs.StandardDisclaimer;


***************************************************************************
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/threads.html
***************************************************************************


***************************************************************************
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/threads.html
***************************************************************************

  • References:
    • Recursivity
      • From: "Jean Georges PERRIN" <jgp@4js.com>



 

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

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