What do brackets [ ] mean?

Subject: What do brackets [ ] mean?
From: "alex chang" <shortestpath@xxxxxxxxxxx>
Date: Wed, 14 Jun 2000 07:53:05 EDT
I posted a problem a few days or so ago,
describing that I was trying to use:

   <xsl:choose>
     <xsl:when test=". = 'Transaction_Type'">
       Transaction Description
     </xsl:when>
     <xsl:otherwise>
       <xsl:value-of />
     </xsl:otherwise>
   </xsl:choose>

I received an error:
Expected token 'eof' found '='. . -->=<-- 'Transaction_Type'

and I thought it was because of the namespace that I was using:
http://www.w3.org/TR/WD-xsl. (I know this is obsolete but the
current version of software I am using requires me to do so.)

However, a consultant came in and changed
<xsl:when test=". = 'Transaction_Type'">
to
<xsl:when test=".[. $eq$ 'Transaction_Type']">
and this worked!

He just left (he was working an overnight shift), but I am
anxious to know what the [ ] (with the dot inside it) means.
Also, from what I understand a $ sign is used to get the value
of a variable, but how about $eq$?

Thanks in advance,
-alex
________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com


XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list



Current Thread