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

Re: [Fwd: %20 in href attribute]

Subject: Re: [Fwd: %20 in href attribute]
From: Jeni Tennison <jeni@xxxxxxxxxxxxxxxx>
Date: Wed, 23 Jan 2002 12:02:20 +0000
a href non ascii
Hi Yan,

> When use a variable with string value, which contains spaces after
> the #, as the value of href attribute to the <a> tag, the
> transformer automatically replaces the spaces with %20 and causes
> the link not recognize the anchor in the targeting page. Is there a
> work around for that?

Out of interest, which browsers don't recognise the %20 in the
fragment identifier (the bit after the #)?

There might be processors out there that don't escape spaces (since
the XSLT 1.0 Rec actually only says that non-ASCII characters should
be escaped, and spaces are ASCII characters), so it might be worth
looking at some other processors to see what they do.


For interest, in XSLT 2.0, there's a escape-uri-attributes attribute
on xsl:output that enables you to control whether URI attributes are
escaped at all when using the HTML or XHTML output methods. However,
this would affect all the escaping, not just the escaping of spaces.



Jeni Tennison

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Current Thread


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.
First Name
Last Name
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.