OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   RE: DTD declaration

[ Lists Home | Date Index | Thread Index ]
  • From: "Webber, Andrew" <WebbeA@parl.gc.ca>
  • To: "'xml-dev@lists.xml.org'" <xml-dev@lists.xml.org>
  • Date: Wed, 19 Jul 2000 10:54:42 -0400

The structure that corresponds to your current model is 

<!ELEMENT index (para|num_list|image)*>

(any or none of the elements can appear in any order in any quantity)

and note that this also allows you to require _something_ as a child of
<index>:

<!ELEMENT index (para|num_list|image)+>

if, of course, that's what you want.

-- 
Andrew Webber
PRISM: WebbeA@parl.gc.ca
PRISM: 613-943-7887
cell:  613-797-8123



> -----Original Message-----
> From: Raheja, Dhruv (TRANS) [mailto:Dhruv.Raheja@Trans.ge.com]
> Sent: Wednesday, July 19, 2000 9:51 AM
> To: 'xml-dev@lists.xml.org'
> Subject: DTD declaration
> 
> 
> hi,
> 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!!
> Thanks a lot.
> Dhruv
> 
> 
> Dhruv Raheja
> Summer Intern (Documentation Center)
> GE Transportation Systems
> 2901 East Lake Road
> Erie, PA 16531
> Ph : (814) 875 - 2529 (O)
>        (814) 824 - 2888 (R)





 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS