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/28 21:24:33 UTC

Atribute HREF

Hello,
I think this question is already aswered but I lost my emails ...
I have a XML:

<escopo HREF="../escopo/escopo.xml"> .....</escopo>

and I want use the atrib HREF here:

<td width="100%"><a href="./Escopo/Escopo.xml">Escopo</a> </td>

replacing the tag <a href=......>

I can do this  < a <xsl:value-of select="@HREF">> or not , what do you
sugest me?

Thank by now



Adenilson






RE: Atribute HREF

Posted by Matthew Smith <ms...@windebt.com>.
Or (my preference):
<a href="{ @href }">
   <xsl:value-of select="." />
</a>


-----Original Message-----
From: Stephen Fleischman [mailto:sfleisch@rsn.hp.com]
Sent: Thursday, September 28, 2000 3:17 PM
To: cocoon-users@xml.apache.org
Subject: Re: Atribute HREF


Not.
Try:
      <a>
        <xsl:attribute name="href">
           <xsl:value-of select="@href"/>
        </xsl:attribute>
        <xsl:value-of select="."/>
      </a>

Adenilson Roberto Carvalho wrote:
> 
> Hello,
> I think this question is already aswered but I lost my emails ...
> I have a XML:
> 
> <escopo HREF="../escopo/escopo.xml"> .....</escopo>
> 
> and I want use the atrib HREF here:
> 
> <td width="100%"><a href="./Escopo/Escopo.xml">Escopo</a> </td>
> 
> replacing the tag <a href=......>
> 
> I can do this  < a <xsl:value-of select="@HREF">> or not , what do you
> sugest me?
> 
> Thank 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



Re: Atribute HREF

Posted by Stephen Fleischman <sf...@rsn.hp.com>.
Not.
Try:
      <a>
        <xsl:attribute name="href">
           <xsl:value-of select="@href"/>
        </xsl:attribute>
        <xsl:value-of select="."/>
      </a>

Adenilson Roberto Carvalho wrote:
> 
> Hello,
> I think this question is already aswered but I lost my emails ...
> I have a XML:
> 
> <escopo HREF="../escopo/escopo.xml"> .....</escopo>
> 
> and I want use the atrib HREF here:
> 
> <td width="100%"><a href="./Escopo/Escopo.xml">Escopo</a> </td>
> 
> replacing the tag <a href=......>
> 
> I can do this  < a <xsl:value-of select="@HREF">> or not , what do you
> sugest me?
> 
> Thank by now
> 
> Adenilson
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: cocoon-users-help@xml.apache.org

Re: Atribute HREF

Posted by Alexandre Odoni <al...@ebs.com.br>.
Do like this :

<a><xsl:attribute name="href"><xsl:value-of
select="email"/></xsl:attribute></a>

----- Original Message -----
From: "Adenilson Roberto Carvalho" <ca...@cnptia.embrapa.br>
To: <co...@xml.apache.org>
Sent: Thursday, September 28, 2000 4:24 PM
Subject: Atribute HREF


> Hello,
> I think this question is already aswered but I lost my emails ...
> I have a XML:
>
> <escopo HREF="../escopo/escopo.xml"> .....</escopo>
>
> and I want use the atrib HREF here:
>
> <td width="100%"><a href="./Escopo/Escopo.xml">Escopo</a> </td>
>
> replacing the tag <a href=......>
>
> I can do this  < a <xsl:value-of select="@HREF">> or not , what do you
> sugest me?
>
> Thank by now
>
>
>
> Adenilson
>
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: cocoon-users-help@xml.apache.org
>