[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Constrain the Number of Occurrences of Elements in your XM

  • 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

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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.