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

Re: First occurrence of glossary term in whole documen

Subject: Re: First occurrence of glossary term in whole document
From: Liam Quin <liam@xxxxxx>
Date: Wed, 30 Jul 2008 12:57:01 -0400
Re:  First occurrence of glossary term in whole documen
On Wed, Jul 30, 2008 at 03:27:39PM +0100, Marroc wrote:
> I only want to process the first occurrence of each glossary
> term in the document

If they are marked up, you can use a reverse axis to find
if there are earlier ones (if that's too slow you can do something
cunning with key() and position()).

If these are the terms you're replacing, and are not marked up, it
might be easiest to run XSLT twice, first to mark up the terms and
then to process them (or remove the markup from the ones you
don't want).

I've seen conversions with as many as 30 such steps in them -- it
can be much easier to manage than doing everything in one pass.

Liam

-- 
Liam Quin, W3C XML Activity Lead, http://www.w3.org/People/Quin/
http://www.holoweb.net/~liam/ * http://www.fromoldbooks.org/

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-2011 All Rights Reserved.