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

Re: DTD declaration

  • From: "Simon St.Laurent" <simonstl@s...>
  • To: "Raheja, Dhruv (TRANS)" <Dhruv.Raheja@T...>,"'xml-dev@l...'" <xml-dev@l...>
  • Date: Wed, 19 Jul 2000 10:21:21 -0400

raheja last name
At 09:50 AM 7/19/00 -0400, Raheja, Dhruv  (TRANS) wrote:
>My question has to do with DTD syntax . I'm hoping somebody will be able to
>help me out. i have defined an element as follows:
><!ELEMENT index (para*,num_list*,image*)>
>The above code allows me to define child elements (para,num_list,image)
>within the element "index" but only in the order in which they appear in the
>DTD syntax. What should i do if i need to alter the order in some parts of
>my document e.g. i add a <num_list> after an <image> at a certain place in
>my document instead of <para>. I guess this is an elementary thing but i'm
>only 2 months old in the XML world and I have to tell you that most of my
>questions will be very basic!!

I think that for what you're doing, it would probably be easier to do:
<!ELEMENT index (para,num_list,image)*>

That would let them appear in any order.

Hmm... GE... Erie, PA... any locomotives running on XML yet?  (I'm not sure
my brother-in-law the CSX engineer would like that much, though.)

Simon St.Laurent
XML Elements of Style / XML: A Primer, 2nd Ed.
http://www.simonstl.com - XML essays and books

  • 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.