[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
Re: [xsl] XSL question for email link
Subject: Re: [xsl] XSL question for email link From: Mike Brown <mike@xxxxxxxx> Date: Sun, 7 Jul 2002 16:15:58 -0600 (MDT) |
Jeff Self wrote: > <xsl:template match="NAME"> > <xsl:text disable-output-escaping="yes"><a href="mailto:"</xsl:text> > <xsl:value-of select="child::EMAIL"/> > <xsl:text disable-output-escaping="yes">></xsl:text> > <xsl:value-of select="FIRST"/> > <xsl:text> </xsl:text> > <xsl:value-of select="LAST"/> > <xsl:text disable-output-escaping="yes"></a></xsl:text> > </xsl:template> > > [...] > > Am I going about this all wrong? Yes. You almost never, ever need to use disable-output-escaping. > If so whats the solution? <xsl:tempate match="NAME"> <a href="mailto:{EMAIL}"> <xsl:value-of select="concat(FIRST,' ',LAST)"/> </a> </xsl:template> - Mike ____________________________________________________________________________ mike j. brown | xml/xslt: http://skew.org/xml/ denver/boulder, colorado, usa | resume: http://skew.org/~mike/resume/ XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] XSL question for email link, Jeff Self | Thread | Re: [xsl] XSL question for email li, Christopher R. Maden |
[xsl] XSL question for email link, Jeff Self | Date | Re: [xsl] XSL question for email li, Christopher R. Maden |
Month |