- From: Kane, David <David_Kane@sra.com>
- Date: Mon, 4 Dec 2000 13:56:00 -0500
- To: www-svg@w3.org
- Cc: "'David Carlisle '" <IMCEAMAILTO-davidc+40nag+2Eco+2Euk@sra.com>, "'Curt Arnold'" <curta@hyprotech.com>
Folks, That solution worked in Saxon, but not Xalan, and unfortunately, it appears as if either behavior could be correct. David Carlisle pointed out when I posted this issue to an XSLT list: >Note that the input document [the SVG doc] relies on the XML parser reading the >DTD and adding the xmlns attribute. The namespace REC explictly warns >against doing this as a non validating parser (as used by most XSL >systems) is not required to read the DTD. That is, even if the DTD >does default this attribute you are recommended to explictly specify it >in the document instance as well. Sincerely, David Kane -----Original Message----- From: Curt Arnold [mailto:curta@hyprotech.com] Sent: Wednesday, November 29, 2000 12:27 PM To: Kane, David Cc: www-svg@w3.org Subject: Re: SVG, XSLT and Namespaces The DTD you reference defines a fixed xmlns attribute for the svg element of http://www.w3.org/2000/svg-20000303-stylable (which has been updated in later drafts). The effect should be equivalent of an explicit default namespace declaration on the <svg> element, such as: [snip] That you should do is: <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:svg="http://www.w3.org/2000/svg-20000303-stylable" xmlns="http://www.w3.org/2000/svg-20000303-stylable" version="1.0"> ... <xsl:template match="svg:path">
Received on Monday, 4 December 2000 14:00:39 UTC