Groups | Blog | Home
all groups > dotnet xml > september 2004 >

dotnet xml : Assembling a link to another document



Luke Vogel
9/18/2004 10:44:11 AM
Hi all ...

More help needed please.

I'm trying to construct an anchor link to another document for my
shopping cart web app.
something like:
<a href="ShoppingBasket.aspx?isbn=<isbndata> ><img src="basket.gif"></a>

where the <isbndata> is extracted from the xml file

In my xsl file I've tried something like:
<a href="ShoppingBasket.aspx?isbn=<xsl:apply-templates select="isbn" />
[quoted text, click to view]
<img src="images/basket.gif" valign="top" hspace="5" /></img>
</a>

but I'm getting unhandled exceptions because of the embedded
<xsl:apply-template ... />, specifically the error returned is:
'<', hexadecimal value 0x3C, is an invalid attribute character.

I've tried using the <xsl:text disable-output-escaping="yes"></xsl:text>
construct but I keep getting the same problem.

Can someone point me in the right direction please?

TIA
--
Regards Luke.
-----
There are 10 types of people in this world
Those that understand binary and those that don't
-----

Luke Vogel
9/18/2004 11:07:47 AM
Sorry to waste your time ...

I managed to get it to work.

I suspect I had a small syntax error that was causing the problem ...

Anyway ... all fixed.

Thanks for being there.

Luke.





[quoted text, click to view]

AddThis Social Bookmark Button