Re: Human Friendly Trix

Phil Dawes wrote:

> 
> Having thought about it, one downside to using the xml-stylesheet tag
> to identify the to-trix stylesheet is that it doesn't (AFAICS) let the
> client know that the stylesheet will output trix. This means that the
> XML file must be targetted specifically at being read by a TriX
> parser, since any other agent applying the stylesheet automatically
> (e.g. a web browser) won't understand the trix output.
> 
> 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
[[
When the LINK element links an external style sheet to a document, the type 
attribute specifies the style sheet language and the media attribute 
specifies the intended rendering medium or media. User agents may save time 
by retrieving from the network only those style sheets that apply to the 
current device.
]]

which suggests that defining a new media is the way to go.

Jeremy

Received on Friday, 20 February 2004 07:02:51 UTC