On Feb 26, 2006, at 9:10 PM, James Yenne wrote:
My feeds contain a generic xml-stylesheet, which formats the feed
for display along with a feed-specific css. Since xsl processors
do not have a standard way to pass parameters to xsl stylesheets, I
provide this feed-specific css to the xsl processor in the feed as
a link with rel="stylesheet". Generating xhtml with this xsl/css
solution works for rendering both in IE6 and FF1.5. (Why does IE7
rip out xml-stylesheet directives?)
A link rel="stylesheet" seems to be the most efficient solution,
however, a fully qualified URI relation does the job too. I would
like to request a stylesheet link relation be added to the IANA
List of Relations and supported in the validators. Thoughts?
One problem with this is that there's no machine readable way without
an extension attribute to indicate what format the stylesheet is
going to transform the data to. If you're going to add an extension
attribute, I'd suggest just making the whole thing an extension
element instead.
Of course, my opinion is partly based on my preference which was
rejected by the group for limiting the link element to links intended
for traversal, so maybe that doesn't matter. But certainly the
possibility should be considered that this is stretching the use of
the link element beyond what it was designed for.
Antone