[Home] [By Thread] [By Date] [Recent Entries]

  • To: "'Roger L. Costello'" <costello@m...>, 'XML Developers List' <xml-dev@l...>
  • Subject: RE: Constrain the Number of Occurrences of Elements in your XML Schema
  • From: "Bullard, Claude L (Len)" <len.bullard@i...>
  • Date: Fri, 5 Aug 2005 14:12:05 -0500

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.
 
len
-----Original Message-----
From: Roger L. Costello [mailto:costello@m...]
Sent: Friday, August 05, 2005 1:38 PM
To: 'XML Developers List'
Subject: RE: 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.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member