Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6505031

javax.xml.transform.Transformer spews "http://www.w3.org/XML/1998/namespace" out

    • 1.4
    • 1.4
    • x86
    • linux
    • Verified

        FULL PRODUCT VERSION :
        java version "1.6.0"
        Java(TM) SE Runtime Environment (build 1.6.0-b105)
        Java HotSpot(TM) Server VM (build 1.6.0-b105, mixed mode)

        ADDITIONAL OS VERSION INFORMATION :
        Linux pinky.sailing.ams.net 2.6.17-1.2142_FC4smp #1 SMP Tue Jul 11 22:57:02 EDT 2006 i686 athlon i386 GNU/Linux

        EXTRA RELEVANT SYSTEM CONFIGURATION :
        also replicable on Windows

        A DESCRIPTION OF THE PROBLEM :
        This XSL transform works in 1.4.2-10, producing the following in 'output.txt':

          map1key1value
          map2key1value

        In 1.6.0-b105, an 'output.txt' with two blank lines is produced.
        I have no idea why this output is produced.

        STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
        Unpack the attached *.tar.gz and, inside the newly created directory, type "java -cp bin GenerateTemplate" (or "javac -d bin src/GenerateTemplate.java" to compile). An eclipse .project and .classpath are provided for convenience. The various files ("config.dtd", "config.xml", "maps.xml", "template.xml", and "transform.xsl") are expected to be in the current directory. When completed, the "output.txt" file has been written to the current directory.

        EXPECTED VERSUS ACTUAL BEHAVIOR :
        EXPECTED -
        output.txt contains:
        map1key1value
        map2key1value
        ACTUAL -
        output.txt contains:


        ERROR MESSAGES/STACK TRACES THAT OCCUR :
        No error messages are produced.

        REPRODUCIBILITY :
        This bug can be reproduced always.

        ---------- BEGIN SOURCE ----------
        Attached seperatly
        ---------- END SOURCE ----------

              spericas Santiago Pericasgeertsen
              ndcosta Nelson Dcosta (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: