[relaxng-user] MIME type for RELAX NG

John Cowan jcowan at reutershealth.com
Mon Dec 13 09:46:54 ICT 2004


Frans Englich scripsit:

> What is the MIME type for RELAX NG? Should I use a bogus text/x-rng or 
> anything else arbitrary, until a formal, registered answer is here? (in case 
> I haven't misunderstood)

I would question why we need a MIME type for the RNG compact syntax.
We do not have one for other "compact" syntaxes such as C or Pascal or
Fortran.  We have one for CSS only because the HTML link element (and
its XML analogue, the xml-stylesheet PI) overload the MIME-type in the
case of stylesheet languages to designate the language.

Strictly, a MIME-type is only needed to specify how to convert a stream
of octets such as an email body (the original use case) or an HTTP
entity-body to application objects such as text or sound or graphics or
video.  The compact syntax is plain text, and I believe text/plain
with a specification of the encoding ("charset" in MIME-speak) is
both necessary and sufficient.

As for the XML syntax, application/xml does it all.

-- 
John Cowan      jcowan at reutershealth.com        http://www.ccil.org/~cowan
        Is it not written, "That which is written, is written"?


More information about the relaxng-user mailing list