XML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreXML Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
SlickEdit: Code in over 40 languages across 7 platforms. SlickEdit’s unmatched power, speed, and flexibility allows even the most accomplished developers to write better code faster. Download a free trial today!
  #1  
Old August 18th, 2003, 03:27 PM
csuttle csuttle is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 2 csuttle User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
can't move xml/xsl from IIS to Tomcat

Hi,

I'm currently moving a web site from IIS to Tomcat. On this website are a lot of XML and XSL's that were previously translated by ASP code. I'm now changing them so that the transformation occurs from within Java classes. They've all been pretty simple so far, but I've come across one that no one has been able to figure out.

Both the XML and XSL are defined to be UTF8 encoding, when IIS perfoms the transform, the resulting document comes out at utf16 - and has dots (.) between each character in the file. Tomcat preserves the utf8.

The IIS transformed document will work as a static page on the IIS site, and on the Tomcat Site. The Tomcat transformed page does not work.

There is some javascript code in the XSL, but that has all been enclosed in CDATA tags.

Has anyone come across anything like this before and could give me some pointers to more information?

Thanks,
Claire

Reply With Quote
  #2  
Old August 19th, 2003, 06:08 PM
mulligh mulligh is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 19 mulligh User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
If you are using mostly Latin characters (i.e. English language), you might want to try changing your source XML document to another encoding like iso-8859-1:

<?xml version="1.0" encoding="iso-8859-1"?>

Reply With Quote
  #3  
Old August 19th, 2003, 06:30 PM
csuttle csuttle is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 2 csuttle User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I don't think I can...I'm using Xalan to do the transform, and I think that Xalan makes the output UTF-8 anyway - I had tried specifying the input files to UTF-16 (And I just tried specifying them both as iso-8859-1) to see if that made any difference, but the output was still in UTF-8.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreXML Programming > can't move xml/xsl from IIS to Tomcat


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway