[R] Stylesheet line in xml output

From: Nick Straw <nick_at_broxholme.com>
Date: Tue, 22 Jun 2010 15:12:01 +0100

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"?>

I can get the first line using:

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

Any ideas?


R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Tue 22 Jun 2010 - 16:06:14 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 22 Jun 2010 - 16:30:35 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive