cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Henrik Hofmann" <Henrik.Hofm...@creon-it.com>
Subject RE: href
Date Wed, 14 Nov 2001 09:33:33 GMT
Ferran Urgell <urgsimfe@yahoo.com> wrote: 

Hi! 


Can I use an sql instruction as a href ? (I have a database with the
field ref) And in the field ref, I would to put the reference to another
page.... 


That's correct ? 


<xsl:template match="sql:*"> 


<a href="{sql:ref}"><xsl:value-of select="."/></a> 


</xsl:template> 



(not works)

 

 

Hi, try this one

    <a>

        <xsl:attribute name="href"><xsl:value-of
select="sql:ref"/></xsl:attribute>

        <xsl:value-of select="."/>

   </a>

I think this should work

 

bye

 

 


Mime
View raw message