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...@locus.apache.org on 2000/11/06 18:36:17 UTC

cvs commit: xml-xalan/java/src/javax/xml/transform/sax SAXTransformerFactory.java

sboag       00/11/06 09:36:14

  Modified:    java/src/javax/xml/transform/sax SAXTransformerFactory.java
  Log:
  Moved getAssociatedStylesheet up to generic level.  added newTransformerHandler(Templates templates).
  
  Revision  Changes    Path
  1.2       +12 -24    xml-xalan/java/src/javax/xml/transform/sax/SAXTransformerFactory.java
  
  Index: SAXTransformerFactory.java
  ===================================================================
  RCS file: /home/cvs/xml-xalan/java/src/javax/xml/transform/sax/SAXTransformerFactory.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- SAXTransformerFactory.java	2000/11/03 23:22:13	1.1
  +++ SAXTransformerFactory.java	2000/11/06 17:36:05	1.2
  @@ -92,6 +92,18 @@
   
     /**
      * Get a TransformerHandler object that can process SAX
  +   * ContentHandler events into a Result, based on the Templates argument.
  +   *
  +   * @param templates The source of the transformation instructions.
  +   *
  +   * @return TransformerHandler ready to transform SAX events.
  +   * @throws TransformerConfigurationException
  +   */
  +  public abstract TransformerHandler newTransformerHandler(Templates templates)
  +    throws TransformerConfigurationException;
  +
  +  /**
  +   * Get a TransformerHandler object that can process SAX
      * ContentHandler events into a Result.
      *
      * @param src The source of the transformation instructions.
  @@ -125,30 +137,6 @@
      * @return An XMLFilter object, or null if this feature is not supported.
      */
     public abstract XMLFilter newXMLFilter(Source src);
  -
  -  /**
  -   * Get InputSource specification(s) that are associated with the
  -   * given document specified in the source param,
  -   * via the xml-stylesheet processing instruction
  -   * (see http://www.w3.org/TR/xml-stylesheet/), and that matches
  -   * the given criteria.  Note that it is possible to return several stylesheets
  -   * that match the criteria, in which case they are applied as if they were
  -   * a list of imports or cascades.
  -   *
  -   * @param source
  -   * @param media The media attribute to be matched.  May be null, in which
  -   *              case the prefered templates will be used (i.e. alternate = no).
  -   * @param title The value of the title attribute to match.  May be null.
  -   * @param charset The value of the charset attribute to match.  May be null.
  -   * @returns An array of InputSources that can be passed to processMultiple method.
  -   *
  -   * @return A Source object suitable for passing to the TransformerFactory.
  -   *
  -   * @throws TransformerConfigurationException
  -   */
  -  public abstract Source getAssociatedStylesheet(
  -    Source source, String media, String title, String charset)
  -      throws TransformerConfigurationException;
     
     /** NEEDSDOC Field errorHandler          */
     ErrorHandler errorHandler;