[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

nodeset comparison

Subject: nodeset comparison
From: "Todd Kleine" <tkleine@xxxxxxxxxxxxx>
Date: Thu, 25 Sep 2003 09:12:08 -0400
xsl nodeset
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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.