cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adenilson Roberto Carvalho <carva...@cnptia.embrapa.br>
Subject Re: links in XML
Date Tue, 12 Sep 2000 20:28:29 GMT
Hi,

Thank you a lot , is easier than i thought...

Adenilson



OD wrote:

> Hi,
>
> You need to put $link in curly brackets {}
> Like so:
>
> <xsl:for-each select="//processo">
> <xsl:variable name="link">
> <xsl:value-of select="position()"/>
> </xsl:variable>
> <tr>
> <td align="left" bgcolor="#d3b3b3"
> width="100%"><a href="./{$link}/{$link}.xml"><xsl:value-of
> select="./text()"/></a> </td>
> </tr>
> </xsl:for-each>
>
> Corey O'Donovan
>
> ----- Original Message -----
> From: Adenilson Roberto Carvalho <carvalho@cnptia.embrapa.br>
> To: <cocoon-users@xml.apache.org>
> Sent: Tuesday, September 12, 2000 9:06 PM
> Subject: links in XML
>
> > greetings  people,
> >
> > I'm trying run this piece of code and i've got some troubles...
> >
> > <xsl:for-each select="//processo">
> > <xsl:variable name="link">
> > <xsl:value-of select="position()"/>
> > </xsl:variable>
> > <tr>
> > <td align="left" bgcolor="#d3b3b3"
> > width="100%"><a href="./$link/$link.xml"><xsl:value-of
> > select="./text()"/></a> </td>
> > </tr>
> > </xsl:for-each>
> > .
> > .
> > .
> > How you can see I've been trying make reference to the directory inside
> > a tag < a href> using a variable . I don't know if this is the right way
> > to do that . I'd like to get some help from you.
> >
> > Thanks by now
> >
> >
> > Adenilson
> >
> >
> >
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> > For additional commands, e-mail: cocoon-users-help@xml.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: cocoon-users-help@xml.apache.org


Mime
View raw message