On Fri, July 15, 2011 10:19 am, Adrian McMenamin wrote:
...
> 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.
I don't know if I'm seeing the same 'line 3' as you, but:
- '--stringparam' needs two arguments, not just '"red"'. From
"xsltproc --help":
--stringparam name value : pass a (parameter, UTF8 string
value) pair
- Add '--novalid' to skip loading the DTD.
Regards,
Tony Graham [email protected]
Consultant http://www.mentea.net
Mentea 13 Kelly's Bay Beach, Skerries, Co. Dublin, Ireland
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
XML, XSL FO and XSLT consulting, training and programming
_______________________________________________
xslt mailing list, project page http://xmlsoft.org/XSLT/
[email protected]
http://mail.gnome.org/mailman/listinfo/xslt