|
[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
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
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!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
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.
|
|