|
Subject: Re: [xsl] Performance of predicate-based patterns From: "Michael Müller-Hillebrand mmh@xxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Date: Fri, 23 Jan 2015 16:33:46 -0000 |
> Matches of the form
>
> <xsl:template match="*[name() = ('P','NP','PARA')]">
>
> showed up a fair bit
Yes, we also use this pattern in stylesheets that are parameterized using
separate XML files. From the XML e.g. a sequence of names is collected in
variables and matches are similar to
match="*[local-name() = $blockLevelElementNames]"
match="*[local-name() = $inlineLevelElementNames]"
match="@*[local-name() = $commonAttributeNames]"
or sometimes refactored in a function
match="*[ns:SatisfiesCondition(.)]"
Any optimization will be very welcome!
Thanks,
- Michael
--
Michael MC<ller-Hillebrand
mmh@xxxxxxxxx
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] Performance of predicate-, Graydon graydon@xxxx | Thread | Re: [xsl] Performance of predicate-, Michael Kay mike@xxx |
| Re: [xsl] Performance of predicate-, Graydon graydon@xxxx | Date | Re: [xsl] Performance of predicate-, Michael Kay mike@xxx |
| Month |