xml-xalan-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From minc...@apache.org
Subject cvs commit: xml-xalan/java/src/org/apache/xalan/transformer TransformerImpl.java
Date Wed, 15 Oct 2003 00:27:14 GMT
minchau     2003/10/14 17:27:14

  Modified:    java/src/org/apache/xalan/transformer TransformerImpl.java
  Log:
  
  PR: bugzilla 22422
  Submitted by: Brian Minchau	
  Reviewed by:	Naeim Semsarilar (person reporting the problem)
  
  Get a system and public ID from the properties used to create a serializer
  and used them to call appropriate methods on the ToXMLSAXHandler.
  
  Revision  Changes    Path
  1.150     +8 -1      xml-xalan/java/src/org/apache/xalan/transformer/TransformerImpl.java
  
  Index: TransformerImpl.java
  ===================================================================
  RCS file: /home/cvs/xml-xalan/java/src/org/apache/xalan/transformer/TransformerImpl.java,v
  retrieving revision 1.149
  retrieving revision 1.150
  diff -u -r1.149 -r1.150
  --- TransformerImpl.java	6 Oct 2003 14:31:59 -0000	1.149
  +++ TransformerImpl.java	15 Oct 2003 00:27:14 -0000	1.150
  @@ -1059,7 +1059,14 @@
           else 
           {
               xoh = new ToXMLSAXHandler(handler, lexHandler, encoding);    
  -        }       
  +        } 
  +
  +        String publicID = format.getProperty(OutputKeys.DOCTYPE_PUBLIC); 
  +        String systemID = format.getProperty(OutputKeys.DOCTYPE_SYSTEM); 
  +        if (systemID != null)
  +            xoh.setDoctypeSystem(systemID);
  +        if (publicID != null)
  +            xoh.setDoctypePublic(publicID);
           
           if (handler instanceof TransformerClient) {
               XalanTransformState state = new XalanTransformState();
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org


Mime
View raw message