input: \[code\]<PackageInfo> <outerinfo> <myCompareInfo>12345</myCompareInfo> </outerInfo> <outerinfo> <myCompareInfo>67890</myCompareInfo> <containedInfo>12345</containedInfo> </outerInfo> <outerinfo> <myCompareInfo>55667</myCompareInfo> <containedInfo>12345-C</containedInfo> </outerInfo></PackageInfo>\[/code\]output:\[code\]<OutputInfo> <Package> <PnNum>12345</PnNum> <Status>split</Status> </Package> <Package> <PnNum>67890</PnNum> <Status>avail</Status> </Package> <Package> <PnNum>55667</PnNum> <Status>avail</Status> </Package> </OutputInfo>\[/code\]I need to do a count but I can't figure out the correct syntax. If the current myCompareInfo exists as a containedInfo value then the status should be split otherwise the status is avail. I created variables for current and count and if count > 0 I set the status but 1, that seems like more steps than is needed and more importantly, 2, it's not working.\[code\]<xsl:variable name="currentVal" select="./myCompareInfo/text()" /><xsl:variable name="splitCount" select="/count(OutputInfo[contains(@myCompareInfo,$currentSSCC)])" />\[/code\]What am I doing wrong with the count?