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

bravegag

Usenet Archive
Joined
May 8, 2006
Messages
4
Reaction score
0
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
 

Joseph Kesselman

Usenet Archive
Joined
Feb 3, 2006
Messages
733
Reaction score
0
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.
 

bravegag

Usenet Archive
Joined
May 8, 2006
Messages
4
Reaction score
0
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
548,049
Messages
3,104,246
Members
248,133
Latest member
DujonT

Latest Threads

Top