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

URGENT : Algorithm for exclusion elements

Subject: URGENT : Algorithm for exclusion elements
From: "Nicola Martella" <nmartella@xxxxxxxxxxxxx>
Date: Thu, 10 Jul 2003 14:22:50 +0200
elements of algorithm
Hi people.
I have a problem with an algorithm that I don't know how to realize in XSLT.

I need to show in HTLM the <description> elements of all groups but only if
between an item/type="T" element and another item/type="T" element are
existing item/type="P" elements. In this way, only the SECOND GROUP
<description> elements should be processed. The problem is that I can know
that nobody <type>P</type> elements are present only after process the group
(between <type>T</type> elements) and it's too late.

Who can help me for this URGENT problem?

Thanks in advance.

<root>

 <!-- FIRST GROUP -->
 <item>
   <type>T</type>
   <description>title 1</description>
 </item>
 <item>
   <type>S</type>
   <description>summary 1</description>
 </item>

 <!-- SECOND GROUP -->
 <item>
   <type>T</type>
   <description>title 2</description>
 </item>
 <item>
   <type>P</type>
   <description>position 1</description>
 </item>
 <item>
   <type>S</type>
   <description>summary 3</description>
 </item>

 <!-- THIRD GROUP -->
 <item>
   <type>T</type>
   <description>title 3</description>
 </item>

</root>



 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.