Re: [xslt] Issue with SVG file

On 22 August 2011 17:44, Christopher R. Maden <crism maden org> wrote:
On 08/22/2011 12:32 PM, Adrian McMenamin wrote:
> I can live without DTD validation but why is the namespace
> declaration breaking everything? Every test I run suggests the SVG
> and the XSL file are valid XML.

This is a FAQ.  The name of the element is a complex object with a
namespace and a local name.

With <svg width="1000px" height="800px" version="1.1"
xmlns="">, the element’s name is
{}svg.  With <svg width="1000px"
height="800px" version="1.1">, the element’s name is {}svg.  These are
NOT THE SAME, and XSLT that works to transform one will not transform
the other.  You may as well ask why changing <svg> to <gvs> does not work.

Thanks, I understand now. Can get round this by using Saxon and XSLT 2.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]