-
XML to HTML Character Escaping
I've got an xsl stylesheet transforming an xml file into html. It works
fine, including using <xsl utput mode="html"> to control the style of
output.
My problem is that I need to output an href value which contains an
ampersand. i.e. something like:
<A HREF="page.asp?value1=Hello&value2=World">
The output always has the & replaced with & which I of course don't
want. I've tried all sorts including a script function to build the string
and using a CDATA section containing the & but the & still gets changed.
Any ideas?
-
Re: XML to HTML Character Escaping
Hi,
Try using 38 instead of & it is the numeris value for ampersand.
Regards
hetal
"Colin" <colinm@zy.com> wrote:
>I've got an xsl stylesheet transforming an xml file into html. It works
>fine, including using <xsl utput mode="html"> to control the style of
>output.
>
>My problem is that I need to output an href value which contains an
>ampersand. i.e. something like:
>
><A HREF="page.asp?value1=Hello&value2=World">
>
>The output always has the & replaced with & which I of course don't
>want. I've tried all sorts including a script function to build the string
>and using a CDATA section containing the & but the & still gets changed.
>
>Any ideas?
>
>
>
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks