xsl-list
[Top] [All Lists]

nodeset comparison

2003-09-25 06:12:08
I am trying to solve the following problem and am having difficulty because
I'm new to this.  Can anyone help?

If I have a nodeset (#1)

<menu>
  <item>
        <text>test</text>
      <param required='y'>contactid</param>
      <param>searchtype</param>
  </item>
</menu>


and another nodeset (#2)

<parameters>
        <searchtype>Boolean</searchtype>
        <anotherparam>testing</anotherparam>
</parameters>


how do I compare these two such that the test in an

<xsl:choose>
        <xsl:when test="">
        ...
        

returns false because the required param contactid (from <param
required='y'>contactid</param> in nodeset #1) is not an element name within
nodeset #2?  If on the other hand the "required" attribute did not exist
then the result of the comparison would be true as a match for searchtype as
an element name was found.

Thanks in advance.


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



<Prev in Thread] Current Thread [Next in Thread>