xsl-list
[Top] [All Lists]

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

2010-09-09 04:07:02


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
Geschäftsfü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(_dot_)imsieke(_at_)le-tex(_dot_)de, http://www.le-tex.de

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

Geschäftsführer: Gerrit Imsieke, Svea Jelonek,
Thomas Schmidt, Dr. Reinhard Vöckler
----------------------------------------------------------------------
Besuchen Sie uns auf der Frankfurter Buchmesse
in Halle 4.2, Stand G446.

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

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>