Currently I have patched views-data-export.tpl.php to pipe the result through XSLTProcessor and a custom style-sheet instead of echoing. This is kind of dirty.


$style = '<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
   <xsl:output method="xml" encoding="UTF-8" cdata-section-elements="title teaser text" omit-xml-declaration="no" media-type="application/xml"/>
   <xsl:template match="nodes">[…]</xsl:template>
</xsl:stylesheet>';

$xslt = new XSLTProcessor();
$xslt->importStylesheet(new SimpleXMLElement($style));
echo $xslt->transformToXml(new SimpleXMLElement("$header\n$body\n$footer"));

Please explain how to create another "theme" for export, with additional entities in the header and custom names for the root and repetition entities (instead of "nodes" and "node") and the ability to declare some content CDATA.

Alternately, would you consider xsl-transform a configurable feature in the setup?

So that I do not forget: Thank You very much for the module! It is a very useful extension to drupal cms!

Kind regards

Peter

Comments

amoebanath’s picture

Status: Active » Closed (won't fix)

As Drupal 6 nears the end of its life and support period, the 6.x version of Views Data Export will not be supported either. To that end, this issue has been closed, and will not be resolved in the 6.x branch of Views Data Export.

If this issue is still relevant to 7.x branch of Views Data Export, then please re-open and move to a relevant 7.x version.