xsl-list
[Top] [All Lists]

Re: Merging lines of 3 words or less

2005-09-08 09:50:30
On 9/8/05, David Carlisle <davidc(_at_)nag(_dot_)co(_dot_)uk> 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