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

how to include an ampersand in an html href using xt and xsl

Subject: how to include an ampersand in an html href using xt and xsl?
From: "John Sidlo" <jsidlo@xxxxxxxxxxxxx>
Date: Mon, 17 Jan 2000 19:21:46 -0500
xsl using ampersand in text
I'm trying to generate an href like...

<a href="foo&bar">xxx</a>

using xsl similar to...

<a>
 <xsl:attribute name="href"><xsl:text
disable-output-escaping="yes">foo&bar</xsl:text>
 </xsl:attribute>
</a>

and a variety of permutations on this theme.

Section 16.4 of XSLT "Disabling Output Escaping" seems to say that
putting ampersands in attributes is flat-out illegal!  ("Thus, it is an
error to disable output escaping for an ... xsl:text element that is
used ot generate the string-value of a ... attribute node")

But & is a common character in href's.

I must be missing something somewhere.

Thanks in advance for any suggestions.


 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.