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

AW: generating HTML Anchor link via XSL

Subject: AW: generating HTML Anchor link via XSL
From: "Schmitt, Christian" <Christian.Schmitt@xxxxxxxxxxxxxxxxx>
Date: Thu, 27 Jul 2000 17:54:32 +0200
xsl anchor href
Eric,
you might want to try this:

<xsl:template match="link">
  <A>
    <xsl:attribute name="href">
      <xsl:value-of select="@href"/>
    </xsl:attribute>
    <xsl:value-of select="."/>
  </A>
</xsl:template>


Hope this helps,
Christian


> -----Ursprüngliche Nachricht-----
> Von: Eric Taylor [mailto:Eric.Taylor@xxxxxxxxxxxx]
> Gesendet am: Donnerstag, 27. Juli 2000 15:09
> An: 'XSL-List@xxxxxxxxxxxxxxxx'
> Betreff: generating HTML Anchor link via XSL
> 
> I'm unable to generate a simple HTML anchor link to via my 
> XSL.  (I'm rather
> a novice, and I'm assuming I'm missing something rather 
> obvious.)  Here's
> what I've done.
> 
> > In my XML file, I have this:
> > 
> >    <link href="\path\filename.xml">link text</link>
> > 
> > In my XSL, I have:
> > 
> >   <xsl:template match="link">
> >     <A href="{@href}"><xsl:value-of /></A>
> >   </xsl:template>
> > 
> > If I have make the XSL display the value of @href (i.e, 
> <xsl:value-of
> > select="@href"/>) it displays the path correctly (and I've 
> checked that
> > the file exists), but when I click on the link, I get "The 
> page cannot be
> > displayed" message.
> > Can someone help me out?  Thanks.  Eric
> 
> 
>  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.