Quantcast
Channel: XML, System.Xml, MSXML and XmlLite forum
Viewing all articles
Browse latest Browse all 935

How do I add one more condition to my when count statement?

$
0
0

I have a when statement that I would like to add one more condition.
I would like to add CaseParty with an Op='A' to my existing count.
How do I do that?

Here is my xslt when test count statement

<xsl:when test="(count(CaseParty[((ObservedRace/@Op='E') or (ObservedEthnicity/@Op='E')) and (Connection/@Word='RSP')] )>0)">


Here is my xml document


<Integration>
<Case>
    <CaseParty ID="7470">
<ObservedRace Word="W" Op="E">White</ObservedRace>
<ObservedEthnicity Word="NH">Non Hispanic</ObservedEthnicity>
<Connection Word="RSP"/>
</CaseParty>
<CaseParty ID="111" Op="A">
<Connection Op="A" Word="CHD">
<Description>Child</Description>
</Connection>
</CaseParty>
</Case>
</Integration>





Viewing all articles
Browse latest Browse all 935

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>