Fejl i stylesheet
<?xml version='1.0'?><xsl:stylesheet xmlns:xsl='http://www.w3.org/1999/XSL/Transform'
xmlns:saw="com" version='1.0'>
<xsl:template match='/'>
<root>
<xsl:for-each select='//CatalogObj'>
<catalog>
<xsl:element name='path'><xsl:value-of select='@path'/></xsl:element>
<xsl:element name='type'><xsl:value-of select='@signature'/></xsl:element>
<xsl:element name='subjectarea'><xsl:value-of select='report/criteria/@subjectArea'/></xsl:element>
<xsl:template match='/'>
<column><xsl:value-of select='//CatalogObj/report/criteria/columns/column/@formula'/></column>
</xsl:template>
</catalog>
</xsl:for-each>
</root>
</xsl:template>
</xsl:stylesheet>
Får fejlen: ---> System.Xml.Xsl.XsltException: 'xsl:template' cannot be a child of 'catalog' element.
Hvorfor?