Re: [xsl] normalize-space and sequence

Subject: Re: [xsl] normalize-space and sequence
From: Abel Braaksma <abel.online@xxxxxxxxx>
Date: Thu, 27 Sep 2007 00:43:39 +0200
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