[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
[xsl] Counting in several levels
Subject: [xsl] Counting in several levels From: Sven Waibel <sven.waibel@xxxxxxxx> Date: Fri, 26 Nov 2004 11:37:22 +0100 |
Hi, a new problem: XML: ------------------------------------------- <case> <parameter> <status value="performed"/> <verdict value="fail"/> </parameter> <parameter> status value="performed"/> <verdict value="pass"/> </parameter> <parameter> status value="performed"/> <verdict value="pass"/> </parameter> <case> <parameter> <status value="performed"/> <verdict value="fail"/> </parameter> <parameter> status value="performed"/> <verdict value="pass"/> </parameter> <parameter> status value="performed"/> <verdict value="pass"/> </parameter> </case> </case> If the current node "case" is the inner node then this is working: <xsl:value-of select="count(parameter[status/@value='performed' and verdict/@value='pass'])" /> But if my current node is the outer node, it's not working for known reasons. I wanna get all parameters that "performed" and "pass". To make it more complex: I don't know how many nodes "case" are in the node "case": //case/case*/parameter Thanks again and best regards Sven
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Documenting XSLT Styleshe, Pawson, David | Thread | RE: [xsl] Counting in several level, Michael Kay |
RE: [xsl] Counting with two conditi, Michael Kay | Date | RE: [xsl] Counting in several level, Michael Kay |
Month |