You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by tm...@apache.org on 2002/05/29 15:04:39 UTC

cvs commit: xml-xalan/java/src/org/apache/xalan/xsltc/runtime/output SAXXMLOutput.java

tmiller     02/05/29 06:04:38

  Modified:    java/src/org/apache/xalan/xsltc/runtime/output
                        SAXXMLOutput.java
  Log:
  added processing instruction support
  
  Revision  Changes    Path
  1.5       +18 -1     xml-xalan/java/src/org/apache/xalan/xsltc/runtime/output/SAXXMLOutput.java
  
  Index: SAXXMLOutput.java
  ===================================================================
  RCS file: /home/cvs/xml-xalan/java/src/org/apache/xalan/xsltc/runtime/output/SAXXMLOutput.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- SAXXMLOutput.java	21 May 2002 18:34:33 -0000	1.4
  +++ SAXXMLOutput.java	29 May 2002 13:04:38 -0000	1.5
  @@ -1,5 +1,5 @@
   /*
  - * @(#)$Id: SAXXMLOutput.java,v 1.4 2002/05/21 18:34:33 tmiller Exp $
  + * @(#)$Id: SAXXMLOutput.java,v 1.5 2002/05/29 13:04:38 tmiller Exp $
    *
    * The Apache Software License, Version 1.1
    *
  @@ -448,5 +448,22 @@
       }
   
   
  +    /**
  +     * Send a processing instruction to the output document
  +     */
  +    public void processingInstruction(String target, String data)
  +        throws TransletException {
  +        try {
  +            // Close any open element
  +            if (_startTagOpen) closeStartTag();
  +            if (_cdataTagOpen) closeCDATA();
  +
  +            // Pass the processing instruction to the SAX handler
  +            _saxHandler.processingInstruction(target, data);
  +        }
  +        catch (SAXException e) {
  +            throw new TransletException(e);
  +        }
  +    }
   }
   
  
  
  

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