[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: XSL question for email link

Subject: RE: XSL question for email link
From: "Ivan Pedruzzi" <ivan@xxxxxxxx>
Date: Sun, 7 Jul 2002 18:49:38 -0400
xml email link
I believe you need to move the context one level up given Jeff's XML

<xsl:template match="NAME">
  <a href="mailto:{../EMAIL}";>
    <xsl:value-of select="concat(FIRST,' ',LAST)"/>
  </a>
</xsl:template>

Ivan


> -----Original Message-----
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx 
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Mike Brown
> Sent: Sunday, July 07, 2002 6:16 PM
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: Re:  XSL question for email link
> 
> 
> Jeff Self wrote:
> > <xsl:template match="NAME">
> >     <xsl:text disable-output-escaping="yes">&lt;a 
> href="mailto:";</xsl:text>
> >     <xsl:value-of select="child::EMAIL"/>
> >     <xsl:text disable-output-escaping="yes">&gt;</xsl:text>
> >     <xsl:value-of select="FIRST"/>
> >     <xsl:text> </xsl:text>
> >     <xsl:value-of select="LAST"/>
> >     <xsl:text disable-output-escaping="yes">&lt;/a&gt;</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
> 
> 


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.