Re: Quering attributes

Subject: Re: Quering attributes
From: sdemler@xxxxxxxxxxx
Date: Wed, 15 Mar 2000 10:36:46 +1300
I am using the XSL processor that comes with the Delphi CueSoft components.

The square brackets seem to be the only way of getting any output

I have a template on the parent node and then I have a for each on the
children node. Each of these children have an attribute called

Since I sent the last email to the list I have had even stranger results.


        <ROWdtqApplication lapp_application_amount="10000" />
       <ROWdtqApplication lapp_application_amount="7500" />
       <ROWdtqApplication lapp_application_amount="100000" />
       <ROWdtqApplication lapp_application_amount="45000" />
       <ROWdtqApplication lapp_application_amount="1000000" />
       <ROWdtqApplication lapp_application_amount="4000" />
       <ROWdtqApplication lapp_application_amount="122000" />


<xsl:template match="dtqApplication">
    <xsl:for-each select="ROWdtqApplication">
      <xsl:if test="[@lapp_application_amount < 100000]">
        <xsl:value-of select="@lapp_application_amount"/>

Examples of wierdness

xsl:if test="[@lapp_application_amount = 10000]"

= 10000 in output ( this is good and makes sense !)

xsl:if test="[@lapp_application_amount < 100001]"

= 10000, 100000, 1000000 in output ????? (this is crap !)

<xsl:if test="[@lapp_application_amount < 100000]"

= 10000 in output ???? (This is also crap !)

How can anyone explain these results ??? I am very confused and don't know
whether the XSL processor that I am using is buggy or whether I have got
the syntax right.

                    Steve Tinney                                                                                           
                    <stinney@xxxxxxxxxxxx        To:     xsl-list@xxxxxxxxxxxxxxxx                                         
                    u>                           cc:                                                                       
                    Sent by:                     Subject:     Re: Quering attributes                                       
                    14/03/2000 17:07                                                                                       
                    Please respond to                                                                                      

> <xsl:if test="[@lapp_application_amount > 10000]">

You don't say which XSL processor you are using, but you almost
certainly want to lose the square brackets.

It should work to say, e.g.:

  <xsl:if test="@lapp_application_amount > 10000">


 XSL-List info and archive:

 XSL-List info and archive:

Current Thread