Subject: [xsl] adding link to report From: "Sawyer, Larry" <Larry.Sawyer@xxxxxxx> Date: Fri, 30 May 2003 07:15:38 -0400 |
I have a report written that calls images given the status of an event. Now I would like to be able to add a link to each of the images that are called. I can't figure out how to assign the link to the various images that are being inserted. Here is the code: <xsl:template match="id"> <xsl:variable name="tmpSite"><xsl:value-of select="site"/></xsl:variable> <xsl:choose> <xsl:when test="contains('DAL', substring($tmpSite,1,3)) or contains('MKO', substring($tmpSite,1,3)) or contains('MRO', substring($tmpSite,1,3))"> <xsl:if test="contains('DAL1',$tmpSite)"> <tr><td colspan="4" align="center"><b>Dallas</b></td></tr> </xsl:if> <xsl:if test="contains('MKO1',$tmpSite)"> <tr><td colspan="4" align="center"><br/><br/><b>Merrimack</b></td></tr> </xsl:if> <xsl:if test="contains('MRO1',$tmpSite)"> <tr><td colspan="4" align="center"><br/><br/><b>Marlboro</b></td></tr> </xsl:if> <td><xsl:value-of select="site"/><br></br> <img> <xsl:attribute name="src"> <xsl:choose> <xsl:when test="severity = 'MINOR'">http://ecformulaqa2.fmr.com:8080/feb/PortalScripts/images/led_yello w.gif</xsl:when> <xsl:when test="severity = 'CRITICAL'">http://ecformulaqa2.fmr.com:8080/feb/PortalScripts/images/led_re d.gif</xsl:when> <xsl:otherwise>http://ecformulaqa2.fmr.com:8080/feb/PortalScripts/images/led _green.gif</xsl:otherwise> </xsl:choose> </xsl:attribute> </img> </td> </xsl:when> </xsl:choose> </xsl:template> <xsl:template match="servletPath"/> </xsl:stylesheet> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Generating PDF forms with XSL, Erik Beijnoff | Thread | [xsl] problem with number, abbouh |
[xsl] Generating PDF forms with XSL, Erik Beijnoff | Date | Re: [xsl] Actual Date, Stephane Bortzmeyer |
Month |