Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > issue with XSLT 'trax' processor (Ant) ...

Reply
Thread Tools

issue with XSLT 'trax' processor (Ant) ...

 
 
bravegag
Guest
Posts: n/a
 
      05-08-2006
Hi all,

I developed a transformation process that works beautifully
when tested using MS Internet Explorer i.e. adding the
<?xml-stylesheet type="text/xsl" href="../xslt/xmldiffs.xsl"?>
on top of the source XML and opening it using MS Internet
Explorer.

The problem is that testing it under the ultimate actual process
from Ant using the most up to date XSL processor "trax" then
my process does not work.

Does not work means:

1-. The trax processor inserts tons of spacing all over i.e. &nbsp;
even when my input XML documents are generated in compact
format.

2-. The differences highlightings are not evidenced even when I made
sure that it was not ignoring input files e.g. css or additional
input XML.

Which is the closest Java XSL processor implementation to MS Internet
Explorer? worst case I will just upload my XML to the WebServer instead
of try getting the HTML doing the transformation myself but it is not
a beautiful solution i.e. it would consume client side resources
running from the client MS IE, would execute n times instead of
once in the server.

My AnT target looks like this:

<!-- Generate difference report -->
<target name = "difference_report"
description = "Generate differences report between consolidated master
and consolidated ldap snapshots" >

<!-- Generate XML of differences as report input -->
<xml_diff_generator desc="MASTER-vs-LDAP"
destfile="${report.dir}/${difference.report.xml}"
ctrlfile="${master.dir}/${master.export.all}"
testfile="${export.dir}/${ldap.export.all}"
failonerror = "true" />

<!-- Generate final HTML diff report of the two XML -->
<xslt basedir="${xslt.dir}"
destdir="${report.dir}"
extension=".html"
in="${master.dir}/${master.export.all}"
processor="trax"
out="${report.dir}/${difference.report.html}"
style="${xslt.dir}/${difference.report.style}"
force="true" />

<echo message = "Completed successfully" />
</target>

TIA,
Me

 
Reply With Quote
 
 
 
 
Joseph Kesselman
Guest
Posts: n/a
 
      05-08-2006
Hard to answer without seeing the stylesheet and a sample document.
Could be a bug in the particular processor being found by TrAX (Sun's
Java ships with a badly outdated version of Apache Xalan); could be a
bug in the Microsoft processor.


--
Joe Kesselman / Beware the fury of a patient man. -- John Dryden
 
Reply With Quote
 
 
 
 
bravegag
Guest
Posts: n/a
 
      05-09-2006
Hi Joseph,

Thanks for your interest to help.

I solved the issue by updating the xalan binaries to the
latest version 2.7 I had the 2.5. Now it works ok pretty
much like Internet Explorer except for a couple of extra
line breaks I am still hunting down.

Thanks,

Regards,
Me

 
Reply With Quote
 
 
 
Reply

Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Is there any c++ based XSLT processor which conforms to XSLT 2.0 vaibhav XML 3 08-14-2006 09:03 AM
win xp pro sp2 64 bit is a multi processor or a uni processor =?Utf-8?B?dW1lc2g=?= Windows 64bit 4 08-01-2006 05:24 AM
issue with XSLT 'trax' processor (Ant) ... bravegag XML 2 05-09-2006 11:41 AM
AMD 64 X2 Processor: Any what to tell what program/process is assigned to processor? The Frozen Canuck Windows 64bit 1 01-16-2006 07:45 PM
Processor fried, should I upgrade or just buy a processor? Dim Computer Support 6 06-21-2004 08:11 PM



Advertisments