...

View Full Version : Element grouping in DTD



cg9com
01-18-2003, 09:38 PM
this may be a stupid question, but im no stranger to making a fool of myself.
bear with me.

<!ELEMENT img EMPTY>
<!ATTLIST ........
>
can the elements be grouped together? say seperated with commas.


also in a notation declaration, how can i keep a file type from being XML parsed? i dont know the syntax
<!NOTATION .jpeg .........> something like that.

im prolly just missing some simple information, but because im learning this on my own, there are gaps in my knowledge. heh

<edit> dunno what forum this goes 2</edit>

jkd
01-18-2003, 09:52 PM
I moved this to the XML forum for you, since it deals with validating XML files with a DTD...

Alex Vincent
01-20-2003, 10:57 PM
Originally posted by cg9com
<!ELEMENT img EMPTY>
<!ATTLIST ........
>
can the elements be grouped together? say seperated with commas.

Yes, they can, but not with commas.



<!ELEMENT (foo | bar) EMPTY>


I think that's the correct format.

cg9com
01-21-2003, 06:07 AM
hey Alex,
this is what i was working with
<!ELEMENT html (head, body)>

the second question i think i got cleared up
<!NOTATION .gif SYSTEM "image/gif">

cg9com
01-22-2003, 05:29 PM
some examples on this (http://www.microsoft.com/mspress/books/sampchap/4486a.asp) page show the method im using (commas)
but ive seen a few pages with the method you suggested Alex

the notation thing was right, minus the . in gif, dunno why i was adding it as an extension .... ive been working on this for a friend, mainly because i need to learn it myself, i think maybe the ( | | ) format is for a different type of document or something.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum