B
bravegag
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.
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
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.
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