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

Re: Wrapping around textual and element node at the sa

Subject: Re: 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
Re:  Wrapping around textual and element node at the sa
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

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.