xsl-list
[Top] [All Lists]

Re: unable to resolve intersect/union operator

2005-05-19 05:58:01
Hi David

David Carlisle wrote:

Hard to tell without seeing your input but perhaps you want
Id written out the input file at the bottom of my first mail.

<xsl:if test="$interim/A/normalize-space() = $interim/B/normalize-space()"

which is true if the white-space normalised string value of any A node
is equal to the white space normalized string value of any B node.

$interim/A/normalize-space() gives an error. However 
normalize-space($interim/A) worked fine. I tried the 'eq' and 'contains' 
operator but as you can see from my input file (attached below) it just isnt a 
straight match. Is there any other way of working around this?


--------------
input.xml
--------------
<Parts>
        <A>
         <Class id="123" type="none">Parts</Class>
         <Value id="345" type="CODED_TEXT">Handle</Value>
         <Value id="456" type="CODED_TEXT">Bolt</Value>
         <Value id="567" type="CODED_TEXT">Nut</Value>
        </A>
        <B>
         <Class id="none" type="Property">No ClassName</Class>
         <Value id="234" type="Property">hasProperty Bolt</Value>
         <Value id="789" type="Property">hasLocation Handle</Value>
         <Value id="901" type="Property">hasLocation Screw</Value>
        </B>
</Parts>

Expected match:
Handle, Bolt


Thanks

Rahil


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--