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 March 23rd, 2010, 10:18 AM
Authorized User
 
Join Date: May 2007
Posts: 79
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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
 
Old March 23rd, 2010, 10:23 AM
Friend of Wrox
 
Join Date: Nov 2007
Posts: 1,243
Thanks: 0
Thanked 245 Times in 244 Posts
Default

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
 
Old March 23rd, 2010, 10:28 AM
Authorized User
 
Join Date: May 2007
Posts: 79
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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.
 
Old March 23rd, 2010, 10:35 AM
mhkay's Avatar
Wrox Author
 
Join Date: Apr 2004
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 Posts
Default

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
 
Old March 23rd, 2010, 10:58 AM
Authorized User
 
Join Date: May 2007
Posts: 79
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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.
 
Old March 23rd, 2010, 11:22 AM
Friend of Wrox
 
Join Date: Nov 2007
Posts: 1,243
Thanks: 0
Thanked 245 Times in 244 Posts
Default

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
 
Old March 23rd, 2010, 11:28 AM
Authorized User
 
Join Date: May 2007
Posts: 79
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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.





Similar Threads
Thread Thread Starter Forum Replies Last Post
strange output jun99 PHP How-To 4 December 9th, 2005 11:20 AM
strange characters Kabe XML 3 March 10th, 2005 08:24 PM
Getting tab characters to show up in output richard.york PHP How-To 9 November 21st, 2004 03:47 AM
Very strange output tdaustin Classic ASP Basics 5 August 2nd, 2004 07:51 PM





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