#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2011
    Posts
    1
    Rep Power
    0

    Angry Need Help in XSLT .ERROR


    I am a begineer floks, for some reason I cant perform less than operation in this code. Please help in resolving this simple error .

    Thanks
    Matt

    Code:
    <html>
    <body>
      <h2>My CD Collection</h2>
      <table border="1">
        <tr bgcolor="#9acd32">
          <th>Title</th>
          <th>Artist</th>
        </tr>
        <xsl:for-each select="catalog/cd">
        <tr>
          <td><xsl:value-of select="title"/></td>
          <xsl:choose>
          <xsl:when test="price &amp;lt;= 10">
             <td bgcolor="#ff00ff">
             <xsl:value-of select="artist"/>
             </td>
          </xsl:when>
          <xsl:otherwise>
             <td><xsl:value-of select="artist"/></td>
          </xsl:otherwise>
          </xsl:choose>
    	  </tr>
        </xsl:for-each>
      </table>
    </body>
    </html>
    </xsl:template>
    </xsl:stylesheet>
    Last edited by requinix; July 27th, 2011 at 04:47 PM.
  2. #2
  3. Did you steal it?
    Devshed Supreme Being (6500+ posts)

    Join Date
    Mar 2007
    Location
    Washington, USA
    Posts
    13,997
    Rep Power
    9397
    What does "can't" mean? What "simple error"? And what XML are you using?

IMN logo majestic logo threadwatch logo seochat tools logo