> 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
|