473,396 Members | 2,147 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Problem transforming with Xalan

I'm in kind of a bind here.. I've got a transformation that disables output
escaping when I copy what is XML out of an element attribute in the source
tree back into the result tree as an XML fragment. I've run this standalone
using Xalan2/Cooktop, and it works correctly.

However, in my application, instead of the XML getting inserted into the
result tree, I get the following:

<?javax.xml.transform.disable-output-escaping?>
[actual escaped text]
<?javax.xml.transform.enable-output-escaping?>

inserted into the source tree. I do not get the PIs when running it
standalone in Cooktop/Xalan2.

It seems like for some reason it is not processing those instructions. In
my Java code, is there something I need to set during the transform to force
this to happen?

thanks,

Jul 20 '05 #1
1 1489
Hey

I figured it out. The disabling of output escaping is apparently reliant
upon a serialization step. This is why I was not seeing it when using
JDOM's XMLOutputter.
"Collin VanDyck" <se*****************@hannonhill.com> wrote in message
news:d4******************************@news.teranew s.com...
I'm in kind of a bind here.. I've got a transformation that disables output escaping when I copy what is XML out of an element attribute in the source
tree back into the result tree as an XML fragment. I've run this standalone using Xalan2/Cooktop, and it works correctly.

However, in my application, instead of the XML getting inserted into the
result tree, I get the following:

<?javax.xml.transform.disable-output-escaping?>
[actual escaped text]
<?javax.xml.transform.enable-output-escaping?>

inserted into the source tree. I do not get the PIs when running it
standalone in Cooktop/Xalan2.

It seems like for some reason it is not processing those instructions. In
my Java code, is there something I need to set during the transform to force this to happen?

thanks,


Jul 20 '05 #2

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

Similar topics

5
by: al dav | last post by:
Hi all ok i am not a java programmer I am a sys-admin, my users want xalan and have already got j2sdk_1.4.2 so i have downloaded it and set the CLASS_PATH export...
1
by: hongping | last post by:
I am having problems transforming a xml doc into html with proper indenting. Here is the xslt <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet version="1.0"...
2
by: Collin VanDyck | last post by:
I'm using Xalan's TransformerIdentityImpl class to provide a nice base framework upon which to write SAX transformers. However, using the identiy transform, I'm getting some weird output issues....
1
by: Fisch von Gestern | last post by:
I have tried to run the extension function/element examples provided with the Xalan-J download. I believe that my classpath is correct, and that my versions are up-to-date. However, I can't get...
2
by: littlefitzer | last post by:
Hi, I have come across a tricky little problem, I hope maybe one of you can help. The problem I am having is that I need to parse two seperate values from an XML document using XSL. The two...
4
by: mikeyjudkins | last post by:
I have an XML file containing localized strings in 9 languages, encoded in Unicode (UTF-8). Im trying to parse this XML document via XSLT (Apache Xalan) to selectively render localized strings...
7
by: RC | last post by:
First, let me say I couldn't find a group discuss XML/XSLT. So I only choose the closest groups to post this message. Here is part of my *.xsl file <xsl:stylesheet...
0
by: terry.jeske | last post by:
Hello, I am trying to upgrade an application that was previously running on Xalan 1.4.2, to 2.7.0. I have worked out the build issues and now the application compiles with the new xalan and...
3
by: Avalon1178 | last post by:
Hi, I recently downloaded the xalan-c source code in http://mirrors.ccs.neu.edu/Apache/dist/xml/xalan-c I followed the instructions from the apache site on how to build it (I already have...
0
by: pradip sonar | last post by:
Hello, I am having a problem with Xalan transforming a document containing Japanese characters. (An initial note: the problem does not occur on my Windows development machine, only on the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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...
0
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,...

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.