Re: [xsl] normalize-space and sequence

Subject: Re: [xsl] normalize-space and sequence
From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx>
Date: Fri, 28 Sep 2007 11:14:41 -0400
Hey Abel (especially),

At 12:23 PM 9/27/2007, I wrote:
Heck: a micropipelining approach would look something like:

<xsl:variable name="name-content">
<xsl:apply-templates select="para" mode="normalize-space"/>
</xsl:variable>
<xsl:variable name="ref-content">
<xsl:apply-templates select="following-sibling::entry[1]/para" mode="normalize-space"/>
</xsl:variable>
<entry name="{$name-content}" ref="{$ref-content}" etc... />

I was thinking about this again last night, and I take it back. I don't think this counts as micropipelining either, since the results of processing the nodes are not actually processed again. Unless the implicit cast to a string counts (and I don't think it does).


Indeed, this is a technique that's useful in XSLT 1.0 too, where restrictions on the Result Tree Fragment generally inhibit pipelining.

So far as I know, everything else I said in that post is true. :-)

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