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

Re: Merging lines of 3 words or less

Subject: Re: Merging lines of 3 words or less
From: James Cummings <cummings.james@xxxxxxxxx>
Date: Thu, 8 Sep 2005 17:50:30 +0100
Re:  Merging lines of 3 words or less
On 9/8/05, David Carlisle <davidc@xxxxxxxxx> wrote:
> 
> point that you joined the lines back so I did
> 
> <xsl:for-each select="current-group()">
> <xsl:copy-of select="(node(),' ')"/>
> </xsl:for-each>

Actually I have a problem here.  The grouping seems to have ignored
that there are occasionally other elements which fall inside <lg>
which it should just copy over.  (like <pb n="123"/> type elements
*sigh*).

If it turns out that this is the only element (I'll check) should I
add "| pb" to the copy-of?

Of course, I only noticed that *after* I did the 20 (well 23 it turned
out) manual changes.


I suppose another option is to merge the <pb> from one file into the
other based on the lg/@n ...

-James
-- 
James Cummings, Cummings dot James at GMail dot 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.