I'm trying XSLT Transformations now.
And i'v edramitcally simplified the XML unti .I get something working.
XML:
<?xml version="1.0" encoding="UTF-8"?>
<employees>
<employee id="1">Dave Collins</employee>
<employee id="2">Siby Jacob</employee>
</employees>
Transform (which does not work):
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" />
<xsl:template match="cms.article">
<p> <xsl:apply-templates select="employees"/> </p>
</xsl:template>
<xsl:template match="employees">
<span><xsl:apply-templates select="employee"/></span>
</xsl:template>
<xsl:template match="employee">
<span><xsl:value-of select="."/></span>
</xsl:template>
</xsl:stylesheet>
There's something about the root - "cms.article" versus "/" that I don't get.