[relaxng-user] jing: error: conflicting ID-types
James Clark
jjc at jclark.com
Wed Oct 1 14:28:58 ICT 2003
John Cowan wrote:
> The fault is with Trang, and yet it's hard to see how it could do any
> better without taking an entirely different approach.
>
> The semantics of ANY in a DTD are essentially (#PCDATA|FOO|BAR|BAZ|...)*,
> where FOO, BAR, BAZ, ... are the declared elements in the DTD. It does
> not mean that "any XML" is permissible here, but that's how Trang
> translates it.
Right. But DTDs don't have real wildcards, so if a DTD author wants a
real wildcard, the best they can do is approximate it with ANY. Most of
the uses of ANY I've come across are cases of this, rather than people
actually wanting the DTD semantics.
In any case, if you want exactly the DTD semantics, trang can give it to
you. See the -i strict-any option:
http://www.thaiopensource.com/relaxng/trang-manual.html#dtd-input
James
More information about the relaxng-user
mailing list