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

Conditional processing by matching elements

Subject: Conditional processing by matching elements
From: "Haque, Suraiya" <Suraiya.Haque@xxxxxxx>
Date: Wed, 26 Dec 2001 10:52:36 -0500
 Conditional processing by matching elements
I'm trying to match SERVICED from the SecondStruct structure with that of
the FirstStruct structure and print out messageOne if the SERVSTAT="Y". If
there is no matching SERVICEID in FirstStruct, print out messageTwo. For
example, my output could look like this:

Service1	On
Service2	Off
Service3	Off
Service4	On
Service5	Off
Service6	Off
Service7	Off

What is a good way to do this?? Thanks for your help.

<Structure StructId="FirstStruct" rowCount="2">
<Row SERVICEID="Service1" NAME="Service One " SERVSTAT="Y" />
<Row SERVICEID="Service4" NAME="Service Four" SERVSTAT="Y" />
</Structure>
<Structure StructId="SecondStruct" rowCount="7">
<Row SERVICEID="Service1" NAME="Service One" />
<Row SERVICEID="Service2" NAME="Service Two" />
<Row SERVICEID="Service3" NAME="Service Three" />
<Row SERVICEID="Service4" NAME="Service Four" />
<Row SERVICEID="Service5" NAME="Service Five"  />
<Row SERVICEID="Service6" NAME="Service Six" />
<Row SERVICEID="Service7" NAME="Service Seven" />
</Structure>

 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.