Now I have come to the last step of my XSL stylesheet, in which I need to print a number representing the total number of nodes added. In fact, it seems to me that this is not so straightforward:
First of all, I am not calculating nodes from the source XML document, I am going to count some nodes from the resulting XML (the source XML document may be empty).
Secondly, I do not consider all nodes.
For example, here is a snippet of my XSLT code:
<xsl:template name="Loop2000A">
<Loop2000A>
<HL>
<HL01>
<xsl:value-of select="'1'"/>
</HL01>
<HL03>
<xsl:value-of select="'20'"/>
</HL03>
</HL>
<xsl:if test="$recbat//provider_taxonomy_qual !='' ">
<PRV>
<PRV01>
<xsl:value-of select="'BI'"/>
</PRV01>
<PRV02>
<xsl:value-of select="$recbat//provider_taxonomy_qual"/>
</PRV02>
<PRV03>
<xsl:value-of select="$recbat//provider_taxonomy"/>
</PRV03>
</PRV>
</xsl:if>
<xsl:call-template name="Loop2010AA"/>
, , $recbat .. . , , (, "Loop2010AA" , ), , 3 , 3, , , "if" , , .
, , , , XML. , , , , ?
, . , , XML-, , xml, TRUE- .