This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

AW: generating HTML Anchor link via XSL


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@RealPage.com]
> Gesendet am: Donnerstag, 27. Juli 2000 15:09
> An: 'XSL-List@mulberrytech.com'
> 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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]