I got this simple XML document:
<?xml version="1.0"?>
<document>
<category>
<id>20504 </id>
<title>ADSL iranga</title>
<parent>Kompiuterinio tinklo</parent>
</category>
<category>
<id>20902</id>
<title>Akumuliatoriai</title>
<parent>Baterijos akumuliatoriai</parent>
</category>
</document>
And this xsl template:
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="text" encoding="utf-8"/>
<xsl:strip-space elements="*" />
<xsl:template match="/category">
<xsl:value-of select="id" /><xsl:text>,</xsl:text>
<xsl:value-of select="title" /><xsl:text>,</xsl:text>
</xsl:template>
</xsl:stylesheet>
I would like to get this simple output:
id,title
id,title
id,title
<...>
However, I don't get my expected delimiter "," Am I using the xsl:text in some wrong manner?
I am using xsltproc for the conversion.