Re: Ampersand in attributes
Browsers are supposed to recognize "&" where just "&" is being used. It is proper HTML to use "&".
I acknowledge that what you are seeing is not what you are used to seeing, because browsers do accept the naked "&", but have you tested what you are getting with the software you are running? Many people discover that the *proper* way of writing the URL "&" works just as well as the naked "&", though I realize there are some apps that incorrectly accept only the naked "&" use of ampersand.
I suggest you try with the conformant output already being produced by Saxon. I use Saxon as a reference implementation of XSLT ... it is really very well done ... and I question my own work before I question what Saxon does with my work.
I hope this helps.
At 2004-10-06 22:42 -0400, Nestor Boscan wrote:
I'm using saxon and I'm having problems generating anchor links. Because the source has to be XML I'm changing ampersands to &. For example:
-- Upcoming publicly-subscribed XSL delivery: Helsinki Oct 18-20,2004 World-wide on-site corporate, govt. & user group XML/XSL training. G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxxxxxxxx Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/ Box 266, Kars, Ontario CANADA K0A-2E0 +1(613)489-0999 (F:-0995) Male Breast Cancer Awareness http://www.CraneSoftwrights.com/s/bc Legal business disclaimers: http://www.CraneSoftwrights.com/legal
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format