[relaxng-user] Re: association of RELAX NG with a document
David Tolpin
dvd at davidashen.net
Fri Oct 24 23:40:59 ICT 2003
> >>>>> David Tolpin <dvd at davidashen.net>:
>
> > Well, you are right. I mentioned DOCTYPE but actually wanted
> > something like a processing-instruction with something like a public
> > identifier as the target.
>
> >From the nXML Document/schema association proposal:
> ...
> A typeIdProcessingInstruction rule allows a document to specify its
> own typeId with a processing instruction. The target attribute
> specifies the processing instruction target that should be
> recognized as specifying a typeId in its value. For example, with
> an additional rule
>
> <typeIdProcessingInstruction target="my-doctype"/>
>
> a document that started
>
> <?my-doctype XHTML Transitional?>
> <html xmlns="http://www.w3.org/1999/xhtml">
>
> would be validated against xhtml-transitional.rnc.
>
> The entire proposal is here:
> http://groups.yahoo.com/group/emacs-nxml-mode/message/259
Yes, I had read the proposal before posting. My opinion is that this association should be
obligatory once present and could not be overriden. As specified, it can be overriden
completely unexpectedly for the user.
David Tolpin
More information about the relaxng-user
mailing list