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

Re: normalize-space and sequence

Subject: Re: normalize-space and sequence
From: Abel Braaksma <abel.online@xxxxxxxxx>
Date: Thu, 27 Sep 2007 00:43:39 +0200
Re:  normalize-space and sequence
David Carlisle wrote:
	      <entry ie="{$foobar}" name="{para}"
	      ref="{following-sibling::entry[1]/para}"
	      usage="{following-sibling::entry[2]/para}"/>

and apparently want that to be

<entry ie="{normalize-space($foobar)}" name="{normalize-space(para)}"
ref="{normalize-space(following-sibling::entry[1]/para)}"
usage="{normalize-space(following-sibling::entry[2]/para)}
"/>


If there may be multiple para nodes as children of an entry you'll need
string-join as well, if not then not.


that will become messy in the end. I'd opt for the pipeline method (not micro-pipeline, am I correct, Wendell? Because we rerun the whole thing again), where with a couple of extra matching templates, you can focus only on the stripping whitespace bits.

Cheers,
-- Abel

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.