[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Hyperlinks and XSL

Subject: Re: Hyperlinks and XSL
From: "Ingo Macherius" <macherius@xxxxxxxxxxxxxxxx>
Date: Thu, 15 Oct 1998 00:51:42 +0200
clinton jpg
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.