Re: [svg-developers] Error in SVG Spec? - Chapter 6.6


You are correct. The spec should use the <xsl:output> element
to produce the DOCTYPE.

This will be fixed in the next release, and possibly listed
as errata for 1.0 (after discussion with the working group).

In fact, the example in the spec is incorrect anyway, since the
xslt processor would think <!DOCTYPE.. is an element. It should be
&lt;!DOCTYPE.. Anyway, it's wrong.

Thanks for the carefull review and I share with you the embarrassment
of the SVG Working Group :)


On Wed, 02 Jan 2002, wrote:

> I was browsing through the SVG Recommendation and found either an error or a 
> very unorthodox piece of coding in the XSLT stylesheet in Chapter 6.6. 
> Outputting a DOCTYPE nested within <xsl:text> is something I hadn't seen 
> before.
> I think the code in the example is incorrect and that what should be there is 
> something beginning like this:
> <?xml version="1.0" standalone="no"?>
> <xsl:stylesheet 
>   xmlns:xsl="" 
>   xmlns=""
>   version="1.0">
> <!-- Add DOCTYPE -->
> <xsl:output
>   method="xml"
>   doctype-public="-//W3C//DTD SVG 20010904//EN" 
>   doctype-system="" />

Received on Wednesday, 2 January 2002 23:05:37 UTC