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

Re: DTD Notation

  • From: Alireza Kheyrollahi <aliostad@k...>
  • To: xml-dev@l..., "Boyse, Jim" <Jim_Boyse@f...>
  • Date: Thu, 08 Feb 2001 09:33:55 +0330

dtd notation
Title: DTD Notation
Dear Jim,
 
Why take the pain to work on an obselete technology. It was not more than a year that DTD had come and everybody was waiting for XML Schema. And this story belongs to year 1999 !
 
But for the question, those two lines are not different. Parantheses are for grouping child elements into groups. The second line (  <!ELEMENT Test2 (ItemA, ItemB?, (ItemC)*)>   ) has no groups!
 
Yours
Alireza Kheyrollahi
System Advance, UK
 
 
----- Original Message -----
From: Boyse, Jim
Sent: Wednesday, July 11, 2001 5:32 PM
Subject: DTD Notation

Can someone help with a DTD notation question, please?

I'm looking at a DTD furnished by an outside source.  In the DTD, most "optional repeating" elements are defined with an asterisk, for example, <!ELEMENT Test1 (ItemA, ItemB?, ItemC*)>.  But a few are defined with additional parentheses, for example, <!ELEMENT Test2 (ItemA, ItemB?, (ItemC)*)>.

What's the difference between "ItemC*" and "(ItemC)*"?

Thanks for any insight into this (subtlety | confusion) you can give.

--Jim
 James A. Boyse
Foremost Insurance Group                        E-Mail: boyse@f...
P.O. Box 2450                                            Phone: 616/956-4150
Grand Rapids, MI  49501-2450                  Fax:      616/956-4450


  • References:

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.