Lists Home |
Date Index |
- From: Richard Tobin <email@example.com>
- To: "Norman H. Samuelson" <firstname.lastname@example.org>, email@example.com
- Date: Wed, 17 Nov 1999 16:47:29 GMT
> I have a large number of fields that normally hold simple textual data, but
> might also include a comment.
You can't constrain the content in that way with a DTD. The best you
<!ELEMENT rho0 (#PCDATA|comment)*>
which allows any mixture of comments and text.
The only alternative is to change the structure, perhaps as you
suggest by putting the data in another element, or perhaps by
making the comment into an attribute.
xml-dev: A list for W3C XML Developers. To post, mailto:firstname.lastname@example.org
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ and on CD-ROM/ISBN 981-02-3594-1
To unsubscribe, mailto:email@example.com the following message;
To subscribe to the digests, mailto:firstname.lastname@example.org the following message;
List coordinator, Henry Rzepa (mailto:email@example.com)