[dsdl-discuss] Fw: [relaxng-user] NRL: schemaType for schemas in XML

From: MURATA Makoto <murata@hokkaido.email.ne.jp>
Date: Tue Feb 03 2004 - 04:32:49 UTC

When media types of referenced schemas are unavailable and schemas are
not XML, we need some other metadata for specifying schema languages.
"schemaType" of NRL is (in my understanding) allowed only for this case.
Andreas proposed to allow "schemaType" even when referenced schemas are
XML and media types are available.

I personally do not see strong reasons ("reject a schema of unknown type
before fetching a copy from a remote server" is not a strong enough
reason for me). Moreover, "schemaType" and referenced schemas may
be inconsistent. But I would like to hear how others feel about this.

This is very similar to the attribute "type" of
anchor elements of HTML. The HTML 4.01 spec says:

        This attribute gives an advisory hint as to the content type of
        the content available at the link target address. It allows user
        agents to opt to use a fallback mechanism rather than fetch the
        content if they are advised that they will get content in a
        content type they do not support. Authors who use this attribute
        take responsibility to manage the risk that it may become
        inconsistent with the content available at the link target
        address.

Makoto

Forwarded by MURATA Makoto (FAMILY Given) <EB2M-MRT@asahi-net.or.jp>
----------------------- Original Message -----------------------
From: "Andreas Sewe" <sewe@rbg.informatik.tu-darmstadt.de>
To: "[Relax NG]" <relaxng-user@relaxng.org>
Date: Tue, 27 Jan 2004 18:34:12 +0100
Subject: [relaxng-user] NRL: schemaType for schemas in XML

----
Hopefully this is the place for discussion about NRL as well.
According to James Clark's NRL document the "validate" element's
"schemaType" attribute is meant to indicate the type of the specified
schema iff its not in XML. Otherwise its type can be automatically
detected from the schema's namespace URI.
While this is certainly true I wonder whether it's worthwhile to allow
for an (optional) indication of a schema's type even in case of a XML
schema. Thus a validator can e.g. reject a schema of unknown type before
fetching a copy from a remote server.
I envision somthing like RDDL's use of XLink's "role" attribute to
indicate the nature or type of the schema specified. Thus one can write
<validate schema="xhtml.rnc"
 schemaType="http://www.isi.edu/in-notes/iana/assignments/media-types/
 application/x-rnc">
as well as
<validate schema="xhtml.rng"
 schemaType="http://relaxng.org/ns/structure/1.0">
Any comments?
Regards,
Andreas Sewe
_______________________________________________
relaxng-user mailing list
relaxng-user@relaxng.org
http://relaxng.org/mailman/listinfo/relaxng-user
--------------------- Original Message Ends --------------------
--
DSDL members discussion list
To unsubscribe, please send a message with the
command  "unsubscribe" to dsdl-discuss-request@dsdl.org
(mailto:dsdl-discuss-request@dsdl.org?Subject=unsubscribe)
Received on Tue Feb 3 05:36:54 2004

This archive was generated by hypermail 2.1.8 : Fri Dec 03 2004 - 14:00:28 UTC