This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: generating HTML Anchor link via XSL
- To: "'xsl-list at mulberrytech dot com'" <xsl-list at mulberrytech dot com>
- Subject: RE: generating HTML Anchor link via XSL
- From: Laurie Mann <laurie dot mann at ansys dot com>
- Date: Thu, 27 Jul 2000 10:05:30 -0400
- Reply-To: xsl-list at mulberrytech dot com
From: Eric Taylor [mailto:Eric.Taylor@RealPage.com]
>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.
You have to remember that you're linking to an HTML or SHTML page - NOT
to an .XML page. So if you change:
<link href="\path\filename.xml">link text</link>
to
<link href="\path\filename.html">link text</link>
it should work fine.
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list