Re: [xsl] When to use text()

Subject: Re: [xsl] When to use text()
From: Ihe Onwuka <ihe.onwuka@xxxxxxxxx>
Date: Fri, 21 Mar 2014 15:28:54 +0000
You see an hour ago I wast quite content with my

  <xsl:template match="RentAmount | MonthlyAmounts">
    <xsl:attribute name="class" select="'money'"/>

  <xsl:template match="RentAmount/text() | MonthlyAmounts/text()">
    <xsl:value-of select="format-number(.,if (xs:decimal(.) > 999.99)
then '$,000.00' else '$0.00')"/>

but now I am not  sure what to make of  the presence of text() in a
match pattern.

On Fri, Mar 21, 2014 at 3:03 PM, Ihe Onwuka <ihe.onwuka@xxxxxxxxx> wrote:
> On Fri, Mar 21, 2014 at 2:20 PM, Wendell Piez <wapiez@xxxxxxxxxxxxxxx> wrote:
>> Hi,
>> To gloss Mike ...
>> Yes, text() is over-used and commonly misused.
> I wouldn't be blaming the programmers for that.
> When you step back, it is clear from all the explanations given, that
> the thing doesn't do what it says on the tin.

Current Thread