Monday, July 7, 2014

Im trying to embed the result of a template into the xsl document.

<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="">
<!-- convert KeePass XML (2.x) format to 7-column keeper.txt format -->
<xsl:output method="text" encoding="utf-8" />
<xsl:template match="/">
<xsl:text disable-output-escaping="yes">&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;office:doc[more code][result of xsl][more code]</xsl:text>

The [result of xsl] contains a call to a template:

</xsl:text><xsl:apply-template select=`"readtable`"><xsl:with-param name=`"count`" select=`"count(//Root/Group/Group[Name='eMail']/Entry/String[child::Key='UserName'])`"/></xsl:call-template><xsl:text disable-output-escaping=`"yes`">

The XSL file will be created by a powershell script. My Problem is that the result of the call to the template 'readtable' overwrites the whole output document. Then the outputfile is just the solution of the call.

If my question is unclear, please ask.

Is there a way to embed the result of the call directly where there tag is?

Thanks in advance