Kirill
Новичок
позиция родительской ноды
xml:
<node>
<subnode/>
<subnode/>
<subnode/>
</node>
<node>
<subnode/>
<subnode/>
<subnode/>
</node>
xsl:
<xsl:template match="node">
<xsl:apply-templates select="subnode"/>
</xsl:template>
<xsl:template match="subnode">
</xsl:template>
Не подскажите, как в шаблоне subnode узнать позицию(position) родительской ноды(node)?
xml:
<node>
<subnode/>
<subnode/>
<subnode/>
</node>
<node>
<subnode/>
<subnode/>
<subnode/>
</node>
xsl:
<xsl:template match="node">
<xsl:apply-templates select="subnode"/>
</xsl:template>
<xsl:template match="subnode">
</xsl:template>
Не подскажите, как в шаблоне subnode узнать позицию(position) родительской ноды(node)?