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

Andrew,

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

Dean

On Wed, 02 Jan 2002, AndrewWatt2001@aol.com 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="http://www.w3.org/1999/XSL/Transform" 
>   xmlns="http://www.w3.org/2000/svg"
>   version="1.0">
> <!-- Add DOCTYPE -->
> <xsl:output
>   method="xml"
>   doctype-public="-//W3C//DTD SVG 20010904//EN" 
>   doctype-system="http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd" />
> 

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