cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "emilio leiva serrano" <>
Subject Re: use of variables on XSL
Date Tue, 18 Jan 2005 12:05:09 GMT
Hi again!!

I'm trying to make a table of notes (idnota and nota) with request values

First xsl page:


    <xsl:for-each select="notas/sql:rowset/sql:row/sql:id_nota">
	<xsl:value-of select="."/>

    <xsl:for-each select="notas/sql:rowset/sql:row/sql:nota">
         <xsl:value-of select="."/>


Second xsl page:

<xsl:variable name="cont">1</xsl:variable>
<xsl:variable name="valor"/>

  <xsl:template match="/">
			<xsl:apply-templates />


<xsl:template match="notas">
<form action="editnotas" method="get">
<table border="1">
    <xsl:for-each select="idnota">
     <xsl:variable name="valor"><xsl:value-of select="."/></xsl:variable>
         <select name="opcion{$cont}">
	<option value="">Opciones</option>
                <option value="M-{$valor}">Modificar</option>
	<option value="S-{$valor}">Suprimir</option>
            <xsl:value-of select="../nota[$cont]"/><xsl:value-of 
   <xsl:variable name="cont"><xsl:value-of select="$cont+1"/></xsl:variable>



If I can't use <xsl:variable.... for the counter, What can I do???

(BTW, this "no me friegues" sounds like Nicaraguan spanish! is n't? ;-) )

   Yes, this "no me friegues" sounds like Nicaraguan spanish!!!  Your friend 
Thorsten told me about it, and we allways are saying it!!

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message