I was engaged in research, but found only solutions when working with attributes.
I recently started learning XSL. I would like to use it to convert my xml file to html file. The data I want to extract should indicate how many nodes have a specific value.
XML has the following structure:
<Tests>
<Test>
<TestName> a </TestName>
<Date> 12.11.10 </Date>
<Result> Fail </Result>
</Test>
<Test>
<TestName> b </TestName>
<Date> 13.11.10 </Date>
<Result> Fail </Result>
</Test>
<Test>
<TestName> c </TestName>
<Date> 14.11.10 </Date>
<Result> Pass </Result>
</Test>
</Tests>
what i want as output: 2 (number of failures) 1 (number of passes)
can anyone give me a hand on this task?
source
share