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

Re: Filtering duplicated data problem

Subject: Re: Filtering duplicated data problem
From: Fanyin Wang <fanyinxslt@xxxxxxxxx>
Date: Thu, 4 Nov 2004 06:52:14 -0800 (PST)
what is duplicated
That's very help for me to learn. Thanks again.
Fanyin

--- Geert Josten <Geert.Josten@xxxxxxxxxxx> wrote:

> Fanyin Wang wrote:
> 
> > I'm not quite understand the match expression of
> > "item[@title !=
> >
>
''][following-sibling::item[itemmetadata/qtimetadata/qtimetadatafield[fieldlabel
> >  =  'item_type_code'][fieldentry ='OE']]]"
> 
> Take a close look. The expression consists of three
> main parts:
>   - item
>   - [@title != '']
>   - [following-sibling::item[.........]]
> 
> The index collects item elements with non-empty
> title attributes. This is what your template selects
> 
> as well, by the combination of the template match
> and if test.
> 
> But I added a second condition to the item elements
> that are collected. The second requirement is 
> that there must be a _following-sibling::item_ that
> has a fieldentry = 'OE'.
> 
> That is why I called the index 'OE-related-items'
> instead of 'OE-items'.
> 
> In your own code you select the OE-items first and
> then look for the related items, but I had to 
> reverse this for the index. preceding-sibling
> outside a predicate as in: item[fieldentry = 
> 'OE']/preceding-sibling::item[@title != ''] is not
> allowed (the parser told me)...
> 
> Grtz,
> Geert
> 
> -- 
> Geert.Josten@xxxxxxxxxxx
> IT-consultant at Daidalos BV, Zoetermeer (NL)
> 
> http://www.daidalos.nl/
> tel:+31-(0)79-3316961
> fax:+31-(0)79-3316464
> 
> GPG: 1024D/12DEBB50
> 
> 



		
__________________________________ 
Do you Yahoo!? 
Check out the new Yahoo! Front Page. 
www.yahoo.com 

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.