Re: [xsl] When to use text()

Subject: Re: [xsl] When to use text()
From: Ihe Onwuka <ihe.onwuka@xxxxxxxxx>
Date: Fri, 21 Mar 2014 16:10:56 +0000
On Fri, Mar 21, 2014 at 3:37 PM, Andrew Welch <andrew.j.welch@xxxxxxxxx> wrote:
>>   <xsl:template match="RentAmount | MonthlyAmounts">
>>     <xsl:attribute name="class" select="'money'"/>
> This will no doubt go down a long road but... that dangling attribute
> creation there is a bad idea, as it depends on that template always
> being executed directly after a start element is added to the result
> tree.

Well not quite. It could be legitimately preceded by other templates
that do dangling attribute creation without a problem.

Meanwhile ...... if a comment node did infiltrate RentAmount/text()
what effect wolud that have with the match pattern and how consistent
would it be with the equivalent scenario outside a match pattern.

Current Thread