Re: Hyperlinks and XSL

Subject: Re: Hyperlinks and XSL
From: "Ingo Macherius" <macherius@xxxxxxxxxxxxxxxx>
Date: Thu, 15 Oct 1998 00:51:42 +0200
Bethany Close <xsl-list@xxxxxxxxxxxxxxxx> wrote at 14 Oct 98, 15:42:

> Given an XML tag like the following how can one create a
> hyperlink using XSL rules and actions?
> 
> <image>clinton.jpg</image>
>
> Using XSL, I would like to create the following hyperlink:
> <a href="clinton.jpg">clinton.jpg</a>

This is working, tested with jjc's latest xt.

--snip--
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet
        xmlns:xsl="http://www.w3.org/TR/WD-xsl";
        xmlns="URI:foo:bar"
        result-ns=""
>
  <xsl:template match="image">
    <a href="{.}">
      <xsl:process-children/>
    </a>
  </xsl:template>
</xsl:stylesheet>
--snip--

See the XSL-WD section 2.7.11.3 for why.

	++im
--
Ingo Macherius//Dolivostrasse 15//D-64293 Darmstadt//+49-6151-869-882
GMD-IPSI German National Research Center for Information Technology
mailto:macherius@xxxxxx http://www.darmstadt.gmd.de/~inim/
Information!=Knowledge!=Wisdom!=Truth!=Beauty!=Love!=Music==BEST (Zappa)


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


Current Thread