xsl-list
[Top] [All Lists]

Re: [xsl] normalize-space and sequence

2007-09-26 15:45:12
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

--~------------------------------------------------------------------
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>
--~--