Subject: Re: [xsl] normalize-space and sequence From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Thu, 27 Sep 2007 12:23:55 -0400 |
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, Wendell
====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ======================================================================
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] normalize-space and seque, Abel Braaksma | Thread | Re: [xsl] normalize-space and seque, Wendell Piez |
[xsl] RE: visual XSL, Ivan Petrov | Date | [xsl] Getting variable yet most imm, Steve |
Month |