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

finding the first unique tagName

Subject: finding the first unique tagName
From: Jim_Albright@xxxxxxxxxxxx
Date: Fri, 30 Jan 2004 09:46:16 -0500
tagname
Starting with this snip:
        <tag id="Quoted_Text">
                        <usage>
                                <para>
                                        <tagName idref="Quoted_Text"/> identifies text that is a direct quotation usually from the Old 
Testament. <tagName idref="Quoted_Text"/> can be found in prose or poetry. You only need to mark your text with <tagName idref="Quoted_Text"/> if you want a special look for the text in focus or you want to search 
for all <tagName idref="Quoted_Text"/>.</para>
                                <note>
                                        <para>
                                                <tagName idref="Citation_Line1"/> and <tagName idref="Citation_Line2"/> is a one tag method of identifying the paragraphs that are quoted from 
another location, like the Old Testament.</para>
                                </note>
                        </usage>
                </tag>

I need to be able to identify the first occurrence of each unique 
tagName/@idref 

so I am looking at something like:
<when test="the current tagName/@idref is the first tagName/@idref in 
usage">

ancestor::usage/descendant::tagName/@idref 
gives me all the tagName/@idref 
Quoted_Text 
Quoted_Text 
Quoted_Text 
Citation_Line1 
Citation_Line2

but I want to identify

Quoted_Text ***
Quoted_Text 
Quoted_Text 
Citation_Line1 *** 
Citation_Line2 ***

just these three

Thanks for your help.

I am using XSLT 2.0.

Jim Albright
704 843-0582
Wycliffe Bible Translators



 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.