Re: xsl example in 1.1SE

Hi Chris.

Chris Lilley:
> The example of using XSLT in the 1.1SE spec
> http://dev.w3.org/SVG/profiles/1.1F2/publish/styling.html#StylingWithXSL
> 
> is missing the stylesheet PI which would cause the transformation to
> be run.
>
> While of course xslt could be run in batch mode to produce static svg,
> I think the example would be more useful if it included the PI in the
> input file. Particularly as the lead-in text for the example says
>
>   The following example uses an external XSL style sheet to transform
>   SVG content into modified SVG content (see Referencing external style
>   sheets).
>
> So it would be good if the input document did, in fact, reference the
> external stylesheet.

I’ve added it now.

> That brings in a question of what meda type to use. Commonly, text/xml
> or application/xml are used. But text/xml is deprecated and
> application/xml is generic, does not really identify a stylesheet
> language. application/xslt+xml is in the process of being registered.
> http://www.imc.org/ietf-xml-mime/mail-archive/msg01086.html

Hmm, well I tested application/xml and it worked in Opera, Firefox and a
WebKit-based browser.  application/xslt+xml did not.  So I used
application/xml.  (I think the unregistered text/xsl is often used,
too.)

-- 
Cameron McCormack ≝ http://mcc.id.au/

Received on Wednesday, 23 September 2009 06:21:39 UTC