W3C home > Mailing lists > Public > www-rdf-interest@w3.org > February 2004

Re: Human Friendly Trix

From: Benja Fallenstein <b.fallenstein@gmx.de>
Date: Fri, 20 Feb 2004 14:45:05 +0200
Message-ID: <40360151.1060107@gmx.de>
To: Jeremy Carroll <jjc@hplb.hpl.hp.com>
Cc: Phil Dawes <pdawes@users.sourceforge.net>, Danny Ayers <danny666@virgilio.it>, Patrick Stickler <patrick.stickler@nokia.com>, www-rdf-interest@w3.org

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

Jeremy Carroll wrote:
| Phil Dawes wrote:
|> It would be nice to be able to have multiple XSLT stylesheet
|> references, allowing the agent to choose which stylesheet to apply
|> depending on the output mimetype it wants. Is this possible with the
|> current set of XML standards?
|
| http://www.w3.org/TR/xml-stylesheet
|
| allows various pseudo attributes including type and media
|
| these are discussed in
| http://www.w3.org/TR/REC-html40/struct/links.html#h-12.3.2

Yes, but unfortunately, as Danny has pointed out and as you quote,
'type' is the media type of the *stylesheet* --

| [[
| When the LINK element links an external style sheet to a document,
| the type attribute specifies the style sheet language
[...]
| ]]

- -- and 'media' ranges over the following: screen, tty, tv, projection,
handheld, print, braille, aural, all; there is no extension mechanism
for this except to introduce new versions of HTML.

http://www.w3.org/TR/REC-html40/types.html#type-media-descriptors

Which of these media descriptors would you recommend for identifying
TriX? ;-)

I believe that the problem here is that <?xml-stylesheet?> is meant for
the "original" (pre-XSLT) meaning of "stylesheet," i.e., for specifying
how a document should be rendered to a user, *not* for specifying an
arbitrary transformation. XSLT is meant for that, but <?xml-stylesheet?>
isn't.

Because of this, I would agree that a different mechanism than
<?xml-stylesheet?> would be preferable, either a TriX-specific
processing instruction or an XML attribute to be placed on the document
tag (I don't think that would be too horrible, although of course
processing instructions are nice in that document validation isn't
affected).

OTOH, introducing your own "media descriptor" for TriX should also be
possible without causing havoc, even though the specs don't allow it.

Cheers,
- - Benja
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFANgFFUvR5J6wSKPMRAgh4AJ9p12evQmYiGlxhawjVPCcRal4VOgCgnVXw
WwXMY//dwMNn7CFn7bQxSCE=
=sKjI
-----END PGP SIGNATURE-----
Received on Friday, 20 February 2004 07:45:19 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 5 February 2014 07:14:58 UTC