[xslt] Issue with SVG file

I have an svg....
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg width="1000px" height="800px" version="1.1" xmlns="http://www.w3.org/2000/svg">
<rect x='0' y='0' width='1000' height='800' fill='white' />
<text x='100' y='800' style='font-family: Helvetica; font-size: 10; fill: black'>Page size: 4096: 0 to 2% memory</text>
<line x1='90' y1='705' x2='905' y2='705' stroke='black' stroke-width='10' />
<line x1='95' y1='705' x2='95' y2='100' stroke='black' stroke-width='10' />
When I use xsltproc I get this
 xsltproc --stringparam "red" selectcolour.xsl master.svg
file:///usr/share/xml/svg/svg11.dtd:2278: validity warning : Attribute space of element style: already defined
    type %ContentType.datatype; #REQUIRED
compilation error: file master.svg line 3 element svg
xsltParseStylesheetProcess : document is not a stylesheet
What is wrong with line 3? If I remove the namespace declaration from that line then xsltproc works.

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