Hi,
I construct a node-set with the following code. I am using saxon9ee.
Code:
<xsl:variable name="countriesSortedRTF">
<xsl:when test="$sortColumn = 'CC'">
<xsl:for-each select="$countries">
<xsl:sort select="@CC" order="{$sortDirection}" />
<xsl:copy-of select=".|@*" /> <!-- Line 58 -->
</xsl:for-each>
</xsl:when>
</xsl:variable>
<xsl:variable name="countriesSorted" select="$countriesSortedRTF/CTRY"/>
I get the following error:
Code:
Error at xsl:copy-of on line 58 of commonheader.xsl:
XTDE0420: Cannot create an attribute node (id) whose parent is a document node. Most
recent element start tag was output at line 58 of module commonheader.xsl
at xsl:for-each (file:/C:/ReportsXSLT2_0/bin/com/display/domain/templates/commonheader.xsl#56)
Could someone explain the meaning of this error? I'm a bit lost. Thanks a lot.