- From: Dean Jackson <dean@w3.org>
- Date: Thu, 3 Jan 2002 15:03:54 +1100
- To: svg-developers@yahoogroups.com
- Cc: www-svg@w3.org, AndrewWatt2001@aol.com, dean@w3.org
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 <!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