Click to See Complete Forum and Search --> : Creating A HREF in XML


Fobold
03-30-2000, 04:54 AM
Hi.

I'm currently coding a program listing in XML, and I need to create a
hyperlink to the file from the XML db. I tried using:

<A HREF=<xsl:value-of select="FileHREF"/>><xsl:value-of
select="FileHREF"/></a>

to create the hyperlink, but it just gives me an error. I've also tried
using scripting inside the <xsl:comment><[CDATA[]]></xsl:comment> tags to
generate the <A> tag, but nothing works! Do I have to add A to my schema,
and if so, do I need to do anything special?

Thanks.

Fobold.
Life is a game. Money is how we keep score.

Patrick Escarcega
03-30-2000, 06:31 PM
"Fobold" <fobold@hotmail.com> wrote in message
news:38e313d4@news.devx.com...
> Hi.
>
> <A HREF=<xsl:value-of select="FileHREF"/>><xsl:value-of
> select="FileHREF"/></a>
>
> to create the hyperlink, but it just gives me an error. I've also
tried
> using scripting inside the <xsl:comment><[CDATA[]]></xsl:comment> tags to
> generate the <A> tag, but nothing works! Do I have to add A to my schema,
> and if so, do I need to do anything special?

Just a snippet that works fine for me...

<a>
<xsl:attribute name="HREF">Member.asp?MemberID=<xsl:value-of
select="Member/ID"/>
</xsl:attribute>
<small>(Member Information)</small>
</a>

--
Patrick Escarcega patrick AT vbguru DOT net
Consultant:Maxim Group www.vbguru.net
---------Do not write below this line---------------