[R] Stylesheet line in xml output

Nick Straw nick at broxholme.com
Tue Jun 22 16:12:01 CEST 2010


I'm probably being dense but I can't work out how to add the second
line:

<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml-stylesheet type="text/xsl" href="style.xsl"?>
<catalogue>
...
...
</catalogue>


I can get the first line using:

saveXML(xml$value(), prefix='<?xml version="1.0"?>',
encoding="ISO-8859-1")

Any ideas?

Thanks.



More information about the R-help mailing list