Re: jing: error: conflicting ID-types

James Clark <[email protected]>
Newsgroups gmane.text.xml.relaxng.general
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.