xsl-list
[Top] [All Lists]

Re: How to embed a hyperlink with a xsl:value inside the <a <xsl:value../> tag

2003-01-06 07:09:40
Another way to do this is with the attribute element:

<TABLE >
  <xsl:for-each select="//aaa/row">
  <TR>
     <TD>
       <xsl:value-of select="name"/><br/>
       <xsl:value-of select="city"/>
                Email address:
                <a>     
                        <xsl:attribute name="href">
                                mailto:<xsl:value-of select="email"/>"
                        </xsl:attribute>
                        <xsl:value-of select="email"/>
                </a><br/>
     </TD>
  </TR>
  </xsl:for-each>
</TABLE>

It is a bit longer and I don't really know the advantages to
it, but there it is:)

Sam

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



<Prev in Thread] Current Thread [Next in Thread>