
23 Oct
2004
23 Oct
'04
1:01 p.m.
Curtis A. Weyant wrote:
That's not true. You can define a full DTD (or a subset of one) within the XML document itself if you want. The W3C gives the following example in the XML 1.0 (3rd ed.) spec:
<?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE greeting [ <!ELEMENT greeting (#PCDATA)> ]> <greeting>Hello, world!</greeting>
You are right. This way you could introduce some personal tags into a document and slip them past the validator.
Of course, while you _can_ do that, it's probably not the best way.
It could become difficult to track which translator goes with which files. It is easier if you just reference one out of a known set of DTDs. -- Marcello Perathoner webmaster@gutenberg.org