LISTSERV mailing list manager LISTSERV 15.5

Help for XML-L Archives


XML-L Archives

XML-L Archives


View:

Next Message | Previous Message
Next in Topic | Previous in Topic
Next by Same Author | Previous by Same Author
Chronologically | Most Recent First
Proportional Font | Monospaced Font

Options:

Join or Leave XML-L
Reply | Post New Message
Search Archives


Subject: Re: Basic question about elements
From: "John E. Simpson" <[log in to unmask]>
Reply-To:General discussion of Extensible Markup Language <[log in to unmask]>
Date:Wed, 25 Aug 1999 15:38:04 -0400
Content-Type:text/plain
Parts/Attachments:
Parts/Attachments

text/plain (21 lines)


At 03:10 PM 8/25/1999 -0400, Tac/Smokescreen Action Network wrote:
>Is it ok to use an element in multiple fields for a DTD?  For example, Name
>below:
>
><!ELEMENT AUTHOR (Name*)>
><!ELEMENT RECIPIENT (Name*)>
><!ELEMENT CC (Name*)>
><!ELEMENT Name (Firstname?, Lastname?, Position?, Affiliation?)>
><!ELEMENT Firstname #PCDATA)
><!ELEMENT Lastname #PCDATA)
><!ELEMENT Postion #PCDATA)
><!ELEMENT Affiliation #PCDATA)

Sure. Perfectly OK... as long as a given element is not *declared* more
than once, it can be *used* in the content models of as many elements as
you'd like.

====================
John E. Simpson
Just XML (ISBN 0-13-943417-8)
Available now from Prentice Hall PTR

Back to: Top of Message | Previous Page | Main XML-L Page

Permalink



LISTSERV.HEANET.IE

CataList Email List Search Powered by the LISTSERV Email List Manager