|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Hyperlinks and XSL
There is probably a more elegant, but more-or-less 'theoretical' (read
unimplemented) way of doing this but...let's get the ball rolling:
<xsl:template match="image">
<fo:block>
<xsl:text><a href="</xsl:text>
<xsl:process-children/>
<xsl:text>"></xsl:text>
<xsl:process-children/>
<xsl:text></a><xsl:text>
</fo:block>
</xsl:template>
Just from memory with absolutely no guarantees. The entities for less-than and
greater-than may or may not be necessary; I'm not familiar with the proposal
sufficiently to say. You might want to tart up the colour or font-style within
the 'fo:block' to make the link stand out. There is probably a way to insert
the actual text value for the gif file using an XSL operator, but I don't have
that at my finger tips. This is, of course, an HTML link and not a XLink you're
trying to create, right? If you want to look at a pretty wide selection of
functioning (mostly) XML/XSL code go get the software at http://www.indelv.com.
Cheers. ...edN
-----Original Message-----
From: Bethany Close [SMTP:bclose@xxxxxxxxxxxxxxxxx]
Sent: Wednesday, October 14, 1998 3:43 PM
To: xsl-list@xxxxxxxxxxxxxxxx
Subject: Hyperlinks and XSL
Given an XML tag like the following how can one create a
hyperlink using XSL rules and actions?
XML:
<image>clinton.jpg</image>
Using XSL, I would like to create the following hyperlink:
<a href="clinton.jpg">clinton.jpg</a>
Thanks, Beth
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
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








