Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
<a> <b> <html:p><html:a>link1</html:a><html:a>link2</html:a></html:p></b></a>
リンクの数を取得する方法は?
すべての html:a ノードが必要な場合 (例のノードだけでなく)
<xsl:template match="/"> <xsl:value-of select="count(//html:a)"/> </xsl:template>
オブジェクトノードを使用してリンクをカウントできます。これを試して -<xsl:value-of select="count(/root/*)"/>
<xsl:value-of select="count(/root/*)"/>