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] Constrain the Number of Occurrences of Elements in your XM

[ Lists Home | Date Index | Thread Index ]

Wouldn't you rather bound that in the code (Just In Time) over the Schema?
Recursion is a natural feature of marking structures, so abstaining from it
completely in the schema leads to more problems.  Please forgive the
truncated DTD notation following:
<ELEMENT section1 (section2) ...
<ELEMENT section2 (section3)...
is a lot uglier to me.
-----Original Message-----
From: Roger L. Costello [mailto:costello@mitre.org]
Sent: Friday, August 05, 2005 1:38 PM
To: 'XML Developers List'
Subject: RE: [xml-dev] Constrain the Number of Occurrences of Elements in your XML Schema

I agree that recursion can be extremely useful.  In fact, recursion is fun!
However, "runaway recursion" is not useful, nor is it fun.
The recursive capability in XML Schemas does not (as Len noted) allow you to specify a maximum depth of recursion.  Thus, it is runaway recursion.  Consequently, I contend that it's best to completely abstain from the recursion that is provided by XML Schemas.


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

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