Subject: Re: [xsl] Xpath Syntax Issue From: Michael Kay <mike@xxxxxxxxxxxx> Date: Mon, 23 Jul 2012 21:50:47 +0100 |
At 2012-06-23 16:40 -0400, John A. Walsh wrote:This seems to work:
<xsl:template match="pets/animal[species[normalize-space(.) = 'fish']]"/>
Which would be the same as:
<xsl:template match="pets/animal[normalize-space(species) = 'fish']"/>
... which might be easier for someone maintaining the stylesheet to understand.
Of course the processor may optimize both expressions to be the same executing code, but from a maintenance perspective, keeping expressions simpler would have more benefit.
Michael Kay Saxonica
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] XSLT/CSS border style - s, Kevin Brown | Thread | Re: [xsl] Xpath Syntax Issue, Peter Flynn |
Re: [xsl] XSLT/CSS border style - s, Kevin Brown | Date | Re: [xsl] Xpath Syntax Issue, Peter Flynn |
Month |