This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: How to create active hyperlinks from xml file


I don't know if I am being overly complicated, but the only thing that I was
able to get to actually work from something like this:

> <favourites>
>    <url>www.iol.ie></url>
>    <url>www.deafblind.com></url>
>    <url>www.download.com></url>
> </favourites>

was:

<xsl:template match="url">
  <xsl:variable name="href">http://<xsl:value-of select="."/></xsl:variable>

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


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]