'dashes in DTD not validating
I have a DTD supplied by someone else, and it is not validating when I try to use XSLT. Here is an extract:
<!ELEMENT vehicle - - (#PCDATA | left | centre | right)*
-(vehicle |
date |
title |
price |
id |
code |
ref |
%changeref
)>
The parser has a problem with the two dashes on the first line. Is this an old way of doing DTDs that the parser has a problem with?
The DTD is quite big and these dashes are all the way through the definitions. Is there something I can do to make it validate?
Solution 1:[1]
That DTD is for SGML, not XML.
The extra - - are for tag minimization, which XML does not support. You'll have to remove those if you want to use the DTD for XML.
See also
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | kjhughes |
