Re: Human Friendly Trix

-----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