|
Subject: Re: [xsl] Cost of complex match patterns From: Florent Georges <lists@xxxxxxxxxxxx> Date: Tue, 12 Aug 2008 11:56:16 +0200 (CEST) |
Andrew Welch wrote:
Hi Andrew,
> match="foo[//bar]"
> match="foo"
> Should the former be avoided, or because it's within a match
> pattern it's converted to a simple lookup so it's fine?
I don't know the details of your processor on that point, but out of
interest, if you only match on the main input tree, you can replace the
former by:
<xsl:variable name="has-bar" as="xs:boolean" select="
exists(//bar)"/>
<xsl:template match="foo[$has-bar]">
Regards,
--drkm
_____________________________________________________________________________
Envoyez avec Yahoo! Mail. Une boite mail plus intelligente http://mail.yahoo.fr
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| [xsl] Cost of complex match pattern, Andrew Welch | Thread | Re: [xsl] Cost of complex match pat, Andrew Welch |
| Re: [xsl] XSL: parsing, Florent Georges | Date | Re: [xsl] Cost of complex match pat, Colin Paul Adams |
| Month |