[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: adding link to report
I didn't get any responses to this. Can it be done for me to call the images the way I am below, and then assign a link to those images. If so, and suggestions on how this can be done. thanks! > -----Original Message----- > From: Sawyer, Larry > Sent: Friday, May 30, 2003 7:16 AM > To: 'XSL-List@xxxxxxxxxxxxxxxxxxxxxx' > Subject: adding link to report > > 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_yel > low.gif</xsl:when> > <xsl:when test="severity = > 'CRITICAL'">http://ecformulaqa2.fmr.com:8080/feb/PortalScripts/images/led_ > red.gif</xsl:when> > > <xsl:otherwise>http://ecformulaqa2.fmr.com:8080/feb/PortalScripts/images/l > ed_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
|
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
|