quinnseppo
Programmer
I'm trying to determine the count of a node, testing two attributes using boolean "AND". It works on the same node with a single attribute.
count(//detail[@projectid[.=$pId]])
Is it possible to test multiple attributes inside "count"? please help!
<xsl:for-each select="resources/resource">
<xsl:variable name="rId" select="@resourceid"/>
<xsl:for-each select="project">
<xsl:variable name="pId" select="@projid"/>
<xsl:variable name="test" select="count
(//details[@projectid[.=$pId] and @resourceid.=$rId]])"/>
</xsl:for-each>
</xsl:for-each>
count(//detail[@projectid[.=$pId]])
Is it possible to test multiple attributes inside "count"? please help!
<xsl:for-each select="resources/resource">
<xsl:variable name="rId" select="@resourceid"/>
<xsl:for-each select="project">
<xsl:variable name="pId" select="@projid"/>
<xsl:variable name="test" select="count
(//details[@projectid[.=$pId] and @resourceid.=$rId]])"/>
</xsl:for-each>
</xsl:for-each>