You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by sb...@apache.org on 2001/01/03 02:46:30 UTC

cvs commit: xml-xalan/test/java/src/org/apache/qetest/trax TransformerAPITest.java

sboag       01/01/02 17:46:30

  Modified:    test/java/src/org/apache/qetest/trax TransformerAPITest.java
  Log:
  In testCase2, comment out section that does the UTF-16 transformation,
  since I don't think the XSLT file used will create a valid XML
  with UTF-16 encoding (I could be wrong), since the xml-decl
  is ommitted.
  Also, Xerces 1.2.3 is pretty broken for UTF-16 right now.
  You might be able to just include the xml-decl and have it work,
  since I think Xerces 1.2.3 produces a DOM from UTF-16 OK,
  but I'm not sure about this.
  
  Revision  Changes    Path
  1.8       +8 -0      xml-xalan/test/java/src/org/apache/qetest/trax/TransformerAPITest.java
  
  Index: TransformerAPITest.java
  ===================================================================
  RCS file: /home/cvs/xml-xalan/test/java/src/org/apache/qetest/trax/TransformerAPITest.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- TransformerAPITest.java	2000/12/19 15:01:34	1.7
  +++ TransformerAPITest.java	2001/01/03 01:46:30	1.8
  @@ -589,6 +589,13 @@
                   reporter.logThrowable(reporter.ERRORMSG, e, "Problem with set/get output properties(1)");
               }
   
  +            /*
  +            NOTE (SB):
  +            Shane omits the xml-decl in the stylesheet, which I don't think 
  +            will create a valid XML with UTF-16 encoding (I could be wrong).  
  +            Also, Xerces 1.2.3 is pretty broken for UTF-16 right now.
  +            So just comment this out for the moment.
  +            
               // Try doing a transform (will be UTF-16), to get some output
               if (doTransform(outputTransformer, 
                               new StreamSource(outputFormatTest.xmlName), 
  @@ -600,6 +607,7 @@
                                     new File(outputFormatTest.goldName), 
                                     "transform(UTF-16,1) outputParams into: " + outNames.currentName());
               }
  +            */
   
               // Change a single property (makes for simpler encoding output!)
               outputTransformer.setOutputProperty(OutputKeys.ENCODING, "UTF-8");