Subject: [xsl] big hairy Xpath (Solved!) From: Russell Urquhart <russurquhart1@xxxxxxxxxxx> Date: Fri, 17 Apr 2009 18:14:05 -0500 |
Hi All, I ended using a variation of Wendells sugggest of: 1) //GenTable[count(.//entry 2) [Emphasis[@type='bold'] 3) [(.='Address Offset') or 4) (.='Physical Address') or 5) (.='Instance') or 6) (.='Description') or 7) (.='Type') ] ) 8) >= 4] changing the entry to .//entry as entry IS a descendant of GenTable and not a direct child. To see if i got my head around this now. WRT to the lines numbered above: 1) Go to a GenTable child node. Within that element (that's what the '[' at this point means, right?) go to a descendant entry element. 2) Go to a child Emphasis element, looking for the type attribute set to 'bold'. 3) (Does the opening '[' at this point signal an AND being applied wrt to...) Within this same element see if it has the value of 'Address Offset'. 4) - 7) Of if the current element has any of these values, closing the checking with the ']' 8) if the number of these is >= 4 then return this GenTable. Is that about right. The multiple predicates in this situation act like and AND? Thanks to everyone for all your help! Russ
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] [ANN] Balisage and Symposium , B Tommie Usdin | Thread | Re: [xsl] big hairy Xpath (Solved!), Wendell Piez |
[xsl] [ANN] Balisage and Symposium , B Tommie Usdin | Date | [xsl] Solution Needed for DB output, balaganesh mohan |
Month |