You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Adenilson Roberto Carvalho <ca...@cnptia.embrapa.br> on 2000/09/12 22:28:29 UTC

Re: links in XML

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 <ca...@cnptia.embrapa.br>
> To: <co...@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