Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XSLT
|
XSLT General questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 11th, 2011, 03:24 PM
Registered User
 
Join Date: Feb 2011
Posts: 13
Thanks: 4
Thanked 0 Times in 0 Posts
Default Output £ sign in XSLT

Hi

I've read a number of threads and tried the reccomendations, switching between UTF-8 and IS0-8859-1, using £ or £ or £ and I've upgraded to Internet Explorer 8 as I was still running IE6 on my test system.

Despite these efforts stil where £ should be output it appears as:

£

Can anyone help?

Thanks
 
Old February 12th, 2011, 06:35 AM
Friend of Wrox
 
Join Date: Nov 2007
Posts: 1,243
Thanks: 0
Thanked 245 Times in 244 Posts
Default

Well we need to have more details to help with that. Where exactly does the pound occur wrong? In Internet Explorer? What do you view in Internet Explorer, a plain text document, an XML document, an HTML document? Where do you load from, from the file system, or over HTTP from a web server? If you load a HTML document from the file system then it needs a meta element
Code:
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
where of course the "UTF-8" is an example, it needs to be replaced with the encoding used to encode the document.
And as you are asking in an XSLT forum I suspect you create the HTML with XSLT, in that case you don't need to and should not include the meta element by hand, instead you should let the XSLT processor add it automatically by using the proper output method ("html" in XSLT 1.0 or 2.0, or "xhtml" in XSLT 2.0 if XHTML is used).
If you load HTML or XML or plain text over HTTP you can also configure your web server to send a Content-Type header with a charset parameter with the used encoding, that way the browser knows how to decode the document when rendering it.
__________________
Martin Honnen
Microsoft MVP (XML, Data Platform Development) 2005/04 - 2013/03
My blog
The Following User Says Thank You to Martin Honnen For This Useful Post:
tombliboo (February 12th, 2011)
 
Old February 12th, 2011, 03:00 PM
Registered User
 
Join Date: Feb 2011
Posts: 13
Thanks: 4
Thanked 0 Times in 0 Posts
Default

Thank you put that within the head tag of my generated HTML pages and the output now omits the special character.





Similar Threads
Thread Thread Starter Forum Replies Last Post
How to produce this output in XSLT 1.0 UndeadHalfOrc XSLT 1 December 9th, 2010 04:34 AM
XSLT Variable output mrame XSLT 2 March 26th, 2009 06:51 AM
XSLT to get hyperlinks in output ashv XSLT 2 December 7th, 2008 06:14 AM
XSLT output with tags trinkets XSLT 22 November 14th, 2006 11:22 AM
XSLT Looks right, but no output Alderian72 XSLT 1 June 9th, 2005 08:47 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.