This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

problems with position()


Hi All!
I have a problem using the position() function. I want to use it to generate 
the VALUE attribute of a HTML mark.
The problem is that the value that the function generates is always 0, but 
if I use it outside the mentioned attribute, the value returned is the 
correct. The code is shown below:


<MAP NAME="flechas">
<xsl:element name="AREA">
  <xsl:attribute name="SHAPE">rect</xsl:attribute>
  <xsl:attribute name="COORDS">0,7,9,13</xsl:attribute>
   <xsl:attribute name="HREF">
javascript:alert(&#39;<xsl:value-of select="position()-1"/>&#39;);
   </xsl:attribute>
</xsl:element>
<AREA SHAPE="rect" COORDS="0,0,9,5" HREF=""/>
</MAP>

Thanks in advance!

_________________________________________________________________
Hable con sus amigos en línea, pruebe MSN Messenger: http://messenger.msn.es


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]