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

Re: unparsed-text and for-each-group

Subject: Re: unparsed-text and for-each-group
From: James Cummings <cummings.james@xxxxxxxxx>
Date: Wed, 21 Dec 2005 18:22:18 +0000
Re:  unparsed-text and for-each-group
On 12/21/05, Michael Kay <mike@xxxxxxxxxxxx> wrote:
> I would tend to do it top-down: first tokenize the unparsed-text() using
> two-newlines as the separator to create a set of strings representing
> stanzas, then tokenize each of these to get the lines.
>
> <for-each select="tokenize(unparsed-text(), '\n\n')">
>   <lg>
>     <for-each select="tokenize(., '\n')">
>       <l><xsl:value-of select="."/></l>

Ok, testing that works when the blank lines are indeed actually blank.
 How do I tokenize by '\n\n' or '\n*someunknownwhitespace*\n'?  Regexs
have never been my strong suit.

-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

Cast Your Vote

We need your help – Vote for DataDirect XML Products!

  • Best SOA or XML site

Winners and finalists announced at SOA World Conference in November.

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-2007 All Rights Reserved.