473,770 Members | 1,700 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

JAXP entity problem

I'm using a variation on Donald Leslie's
JAXPTransletMul tipleTransforma tions.java
(http://www.cs.helsinki.fi/group/xmlt...rmations.java),
and it seems to work just fine. But then I copied it, the xml and the
xslt over to another machine (both SPARC boxes) and got a strange
result: character entities are getting translated strangely. For
instance, ê is translated to \352, and â to \342. Any idea
what might cause this?

When I process the same XML with the same XSLT from the command-line
with
java org.apache.xala n.xslt.Process
it works correctly (on either machine).

Why?

The first few lines of my XSLT follows. I tried changing the encoding
to "UTF-8" or "UTF-16". That didn't change the results.

<xsl:styleshe et xmlns:xsl="http ://www.w3.org/1999/XSL/Transform"
xmlns:str="http ://xsltsl.org/string" version="1.0">
<xsl:import href="string.xs l"/>
<xsl:output method="html" indent="no" version="4.0"
encoding="ISO-8859-1"/>

Jul 20 '05 #1
0 1262

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
4271
by: bugbear | last post by:
Subject pretty much says it all. I'd like to parse XML (duh!) using Xerces (because its fast, and reliable, and comprehensive, and supports lots of features). I'd like to conform to standards as much as possible, so I'd like to call Xerces under the JAXP API. I'd like to validate the XML against a DTD, so that errors are flagged up to the user, and I can transcribe
0
1634
by: Thorsten Meininger | last post by:
As far as I know one could access DOM trees through "pure" DOM and through JAXP using DOM. I have seen dozends of examples but I could not find any differences between the two methods. Which java statement s are typically for JAXP and which for pure DOM? For example could one say that all source code examples using Factories (DocumentBuilderFactory for DOM resp. SAXParserFactory for SAX) are JAXP method based ??? That would mean all...
4
5609
by: joes | last post by:
Hello there I tried for several days to get a simple validation with xml schema & xerces working. Goal for me is tuse JAXP and not specific Xerces classes. I don't get the point what I am doing wrong. Could somebody help me? I didn't find any full example working on the net. Thank you for any hints! If I run the examples below, the parsers parses the file well, no vlaidation is occuring although the schema and xml file does not
0
1484
by: Philippe Poulard | last post by:
hi, i have to build a DOM tree from a SAX flow what is the best way to perform this with JAXP ? i think that the copy transformer suits that problem (SAXSource to DOMResult), but perhaps i miss something more simpler ? any advice ? --
0
1461
by: benoit | last post by:
Hi, When it's written in WebLogic Server 8.1 documentation that this software is based on JDK 1.4.1, and is JAXP 1.1 compliant, (http://edocs.bea.com/wls/docs81/xml/xml_intro.html#189256), does it mean that only JAXP 1.1 can be used (and therefore the latest Xerces and Xalan releases are forbidden, because JAXP 1.2 compliant), or with the famous "Endorsed Standards Override Mechanism"...
2
2299
by: Felix Engelhardt | last post by:
Hi there, I'm having a problem compiling an XSL-stylesheet using JAXP/Xalan which is really driving me nuts... When I try to compile a stylesheet that contains something like: <xsl:value-of select="encode-for-uri(/bla)"/> then I get a TransformerConfigurationException saying that there was an
0
1159
by: Soren Kuula | last post by:
Hi, I need to know all element and attribute declarations in a DTD. It must work with -- what are they called, genral entity references, too; that is, if the DTD is partitioned into several files, I want all declarations in all of them. Does anyone know a clever way of extracting DTD information from the standard JAXP / SAX XML parsers that come with Java? I can't quite find any handler interfaces that have to do with declarations,...
8
1555
by: erik_midtskogen | last post by:
Hi Folks, I'm writing a general-purpose HTML screen-scraping framework in Java (scrape new web sites without writing new code, yada yada...), and I want to use the JAXP DOM api along with XPath and XSLT for most of my business logic. I actually hope to make this an open-source project if I can ever get it to some reasonable level of usability. My problem is that, since the slurry pumped out by most web sites bears only the faintest...
0
1225
by: Undeclared | last post by:
Hello! My goal is to use JAXP for creating SAX parser with my own XMLParserConfiguration. For example, in package org.apache.xerces.parsers there is a constructor: public SAXParser(XMLParserConfiguration config); But I don't want to use Xerces classes, only JAXP. Thank you.
3
2006
dmjpro
by: dmjpro | last post by:
Is anything new in SAX??? Is there any problem with JAXP??? Then why SUN introduced two techniques JAXP and SAX???? Plz explain. Kind regards, Dmjpro.
0
9439
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10071
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9882
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8905
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7431
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5467
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3987
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3589
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2832
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.