Subject: Re: [xsl] Annoying XSLT code From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Thu, 18 Aug 2005 15:07:55 -0400 |
> The first is selecting something using a variable and then applying > templates to that variable, eg: > > <xsl:apply-templates select="$sections/section"/>
Why is this annoying? (I do it all the time:-) if the xpath to select $sections is big and complicated and you need to query into it multiple times then you either need to use a variable, or trust your system's optimiser to implictly cache the result of the expression the first time you use it.
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] Annoying XSLT code, David Carlisle | Thread | RE: [xsl] Annoying XSLT code, Michael Kay |
Re: [xsl] Increment a variable, Wendell Piez | Date | RE: [xsl] Annoying XSLT code, Michael Kay |
Month |