Re: [xsl] Wrapping around textual and element node at the same time

Subject: Re: [xsl] Wrapping around textual and element node at the same time
From: "Imsieke, Gerrit, le-tex" <gerrit.imsieke@xxxxxxxxx>
Date: Thu, 09 Sep 2010 11:06:36 +0200
On 09.09.2010 10:59, Imsieke, Gerrit, le-tex wrote:
<xsl:for-each-group select="$separated" group-adjacent="not(self::sep)">
<xsl:if test="current-grouping-key()">
<seg>
<xsl:sequence select="current-group() except self::sep" />

Correction: except self::sep is a copy-paste remnant. Use <xsl:sequence select="current-group()" /> here.

> </seg>
> </xsl:if>
> </xsl:for-each-group>

I just noticed that the full stop (when not followed by whitespace) should also qualify as a separator. But in contrast to whitespace-induced separators, you mustn't drop it in the output. I leave it to you as an excercise...

Gerrit

--
Gerrit Imsieke
Geschdftsf|hrer / Managing Director
le-tex publishing services GmbH
Weissenfelser Str. 84, 04229 Leipzig, Germany
Phone +49 341 355356 110, Fax +49 341 355356 510
gerrit.imsieke@xxxxxxxxx, http://www.le-tex.de

Registergericht / Commercial Register: Amtsgericht Leipzig
Registernummer / Registration Number: HRB 24930

Geschdftsf|hrer: Gerrit Imsieke, Svea Jelonek,
Thomas Schmidt, Dr. Reinhard Vvckler
----------------------------------------------------------------------
Besuchen Sie uns auf der Frankfurter Buchmesse
in Halle 4.2, Stand G446.

Mehr dazu unter www.le-tex.de/de/buchmesse.html

Current Thread