[
Lists Home |
Date Index |
Thread Index
]
From: "Richard Tobin" <richard@cogsci.ed.ac.uk>
> No, you just can't have a very precise DTD in that case. You could
> just use:
>
> <!ELEMENT name ANY>
Yes. If your data is not mixed content, then you can usually do
a top-level | of the two content models.
<!ELEMENT mouse ( (cheese, nose, tail) | (button, pad, wheel)) >
That way you only lose minimal type strength (i.e. a little bit on the first
element only).
The bigger problem is that you lose the ability to have required attributes,
and that there is a chance that there attributes with different declarations
for the same name. That is one reason why it is better to never have
attributes called "id" that are not of type and function "ID" also. If you
strength reduce an ID attribute down to NMTOKEN or CDATA, it
disappears from the list of IDs known to a validating processor.
Cheers
Rick Jelliffe
|