tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From marcat...@att.net
Subject Re: Problem generating href
Date Fri, 27 Apr 2001 13:50:02 GMT
That did the trick.  Thanks for your help!

--
----------------------------------------------------
All opinions expressed are my own
Marc Robertson
email:robertson@acm.org
homepage:http://home.att.net/~marcrobertson

"The only people that never fail, are those that 
never try!" Anon.
> 
> 
> Try this:
> 
> <a>
>   <xsl:attribute name="href">
>     mailto:<xsl:value-of select="email" />
>   </xsl:attribute>
>   <xsl:value-of select="email" />
> </a>
> 
> 
> Aaron Oathout
> aoathout@mcleodusa.comA
> McLeodUSA Ebusiness
> 
> 
> On Thu, 26 Apr 2001 marcatdst@att.net wrote:
> 
> > I'm trying to create an online directory for a club I'm
> > in.  I want to include a mailto link with the members
> > email address.  I've got an xml file with the member
> > info, and an xsl file to convert it to html.  Here's the
> > part of the xml file that's relevant:
> >
> > <memberlist>
> >  <member>
> >   <email>marcatdst@att.net</email>
> >  </member>
> > </memberlist>
> >
> > Here's the xsl
> > <xsl:template match="memberlist">
> >  <table border="1" width="100%">
> >   <tr>
> >    <th>Email</th>
> >   </tr>
> >   <xsl:for-each select="member">
> >    <tr>
> >     <td>
> >      <a href="mailto:<xsl:value-of select="email"/>" >
> >       <xsl:value-of select="email"/></a>
> >     </td>
> >    </tr>
> >   </xsl:for-each>
> >  </table>
> > </xsl:template>
> >
> > When I try this, I get this error in the Tomcat command
> > window:
> >
> > The value of attribute "href" must not contain the '<'
> > character.
> >
> > Indicating line and column of the '<' for the xsl:value-
> > of I'm embedding in the href.
> >
> > Is there anyway to get this to do what I want?
> >
> > Thanks for any help
> >
> > --
> > ----------------------------------------------------
> > All opinions expressed are my own
> > Marc Robertson
> >
> > "The only people that never fail, are those that
> > never try!" Anon.
> >
> 

Mime
View raw message