Subject: RE: Hyperlinks and XSL From: Ed Nixon <ed.nixon@xxxxxxxxxxxxxxxxx> Date: Wed, 14 Oct 1998 16:45:01 -0400 |
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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: Hyperlinks and XSL, Ingo Macherius | Thread | Re: Hyperlinks and XSL, Paul Prescod |
Hyperlinks and XSL, Bethany Close | Date | Re: Hyperlinks and XSL, Paul Prescod |
Month |