|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: unable to resolve intersect/union operator
Sorry but its still not working out and Im getting quite sick of it !
David Carlisle wrote: > A/Value[for $a in . return /Parts/B/Value[contains(.,$a)]]Heres what Ive done so far (which aint at the end of it) <xsl:variable name="interim" select="$map/TopConcept/*[name()=$ATerm]"/> <xsl:if test="$interim and $interim/B/Class[not(.=$notPresent)]"> <xsl:variable name="aVal" select="normalize-space($interim/A/Value)"/> <xsl:variable name="bVal" select="normalize-space($interim/B/Value)"/> <Test>Test: <xsl:value-of select="distinct-values($aVal[for $a in . return $bVal[contains(.,$a)]])" separator=", "/></Test> </xsl:if> Actual Output: <Test>Test: Handle</Test> Expected Output: <Test>Test: Handle,Bolt</Test> I have to bear in mind that the order of appearance of matching values may differ in the <B> node and might appear in either B/Class or B/Value. I really am sorry for posting so many queries but I just cant seem to resolve this one ! My head's aching now ! Much appreciate your help. Thanks Rahil
Expected match: Handle, Bolt Thanks Rahil
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








