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

Discussion in 'XML' started by bravegag, May 8, 2006.

  1. bravegag

    bravegag Guest

    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
     
    bravegag, May 8, 2006
    #1
    1. Advertising

  2. 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
     
    Joseph Kesselman, May 8, 2006
    #2
    1. Advertising

  3. bravegag

    bravegag Guest

    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
     
    bravegag, May 9, 2006
    #3
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Collin VanDyck

    How to force use of SAXON xslt processor?

    Collin VanDyck, Apr 2, 2004, in forum: Java
    Replies:
    1
    Views:
    649
    Collin VanDyck
    Apr 2, 2004
  2. bravegag
    Replies:
    2
    Views:
    368
    bravegag
    May 9, 2006
  3. vaibhav
    Replies:
    3
    Views:
    1,152
    vaibhav
    Aug 14, 2006
  4. Simon Brooke
    Replies:
    2
    Views:
    604
    Simon Brooke
    Mar 15, 2007
  5. brahatha
    Replies:
    1
    Views:
    661
Loading...

Share This Page