 |
| 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
|
|
|
|

March 23rd, 2010, 10:18 AM
|
|
Authorized User
|
|
Join Date: May 2007
Posts: 79
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
strange characters in output
We are using saxon 9.1 and the output that is generated includes the following characters:
<root>
‰ ‰ ‰ ‰
‰ ‰ ‰ ‰
‰ ‰ ‰ ‰
‰ ‰ ‰ ‰
<table>
...
</table>
</root>
Has anyone seen output like this before? And if so, do you know the cause?
Thanks,
Chelsea
|
|

March 23rd, 2010, 10:23 AM
|
|
Friend of Wrox
|
|
Join Date: Nov 2007
Posts: 1,243
Thanks: 0
Thanked 245 Times in 244 Posts
|
|
What encoding is the output supposed to have? How exactly do you look at the output?
__________________
Martin Honnen
Microsoft MVP (XML, Data Platform Development) 2005/04 - 2013/03
My blog
|
|

March 23rd, 2010, 10:28 AM
|
|
Authorized User
|
|
Join Date: May 2007
Posts: 79
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
When using Oxygen and Saxon 9.2, I don't see these characters. However, I have been told when someone is using Saxon 9.1 the characters appear. They are outputting XML with UTF-8.
I will gather more information about the output from the folks seeing the problem and post that information shortly.
I am unable to recreate on my machine, so I am at a bit of a loss.
|
|

March 23rd, 2010, 10:35 AM
|
 |
Wrox Author
|
|
Join Date: Apr 2004
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 Posts
|
|
The chances are that the output is correct UTF-8, and you are looking at it using software (perhaps a text editor) that does not understand how to display UTF-8 characters (or that is not configured to do so).
__________________
Michael Kay
http://www.saxonica.com/
Author, XSLT 2.0 and XPath 2.0 Programmer\'s Reference
|
|

March 23rd, 2010, 10:58 AM
|
|
Authorized User
|
|
Join Date: May 2007
Posts: 79
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
But when I perform the transformation and view it, Oxygen renders it correctly. However, when another person performs the transformation and then I view it, Oxygen renders it incorrectly.
|
|

March 23rd, 2010, 11:22 AM
|
|
Friend of Wrox
|
|
Join Date: Nov 2007
Posts: 1,243
Thanks: 0
Thanked 245 Times in 244 Posts
|
|
Do you get the transformation result from that other person as a file? Does that file have an XML declaration specifying the encoding? I am not familiar with Oxygen but I am sure it will tell you the encoding somehow it used to decode the file it loaded and displays. Is that the same encoding as in the XML declaration?
__________________
Martin Honnen
Microsoft MVP (XML, Data Platform Development) 2005/04 - 2013/03
My blog
|
|

March 23rd, 2010, 11:28 AM
|
|
Authorized User
|
|
Join Date: May 2007
Posts: 79
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
The stated encoding is
<?xml version="1.0" encoding="UTF-8"?>
But, it looks like I need to complete a little more research and post better detail of the problem.
|
|
 |