|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Hyperlinks and XSL
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








