[relaxng-user] association of RELAX NG with a document

Daniel Veillard veillard at redhat.com
Thu Oct 23 09:43:27 ICT 2003


On Thu, Oct 23, 2003 at 09:55:27PM +0900, Tsuguya Sasaki wrote:
> John Cowan wrote:
> 
> >> I'm a relatively new "convert" (from XML Schema) to RELAX NG. I
> >> understand that there is no standard way to associate a RELAX NG schema
> >> with a document. I'm just wondering if there is any plan to make this
> >> possible.
> > 
> > Not really.  The theory is that you might want to validate a document
> > against different schemas for different purposes, and no one schema is
> > really preferred.
> 
> Thank you very much for your prompt reply. I'm familiar with this
> "theory", but practically speaking, you may nevertheless want to
> associate RELAX NG with instance documents for, e.g., guided editing
> with an XML editor; there seem to be other circumstances where the
> existence of a mechanism for such an association is useful.

  I have got the following Request For Enhancement 
    http://bugzilla.gnome.org/show_bug.cgi?id=125266
the idea growing up seems to have the association done at the toolkit
level instead of having it into the instance.
IMHO it's quite cleaner, the author can't really know what are the 
acceptance rule a given instance will go though, but on the other hand
at a tool level automating the association between the instance and the
schemas simplifies things a lot with the associated results (relibility,
cost of maintainance, etc ...)

 Ideally having a predefined (standardized) vocabulary to match the
instances to Schemas (or processing rules but this is yet another can
of worms) would be the best way to attack this problem. It's unclear
to me whether the approach taken by nXML can really be expanded to other
frameworks, I need to read and digest the proposal first,

Daniel

-- 
Daniel Veillard      | Red Hat Network https://rhn.redhat.com/
veillard at redhat.com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/


More information about the relaxng-user mailing list