curcuru     01/01/22 13:58:27

  Modified:    java/samples/extensions SimpleRedirect.java
  Log:
  Change throws ... FileNotFoundException to IOException to compile under JDK 
1.1.8;
  Change stylesheet name to 1-redir.xsl so it will work
  
  Revision  Changes    Path
  1.4       +3 -3      xml-xalan/java/samples/extensions/SimpleRedirect.java
  
  Index: SimpleRedirect.java
  ===================================================================
  RCS file: /home/cvs/xml-xalan/java/samples/extensions/SimpleRedirect.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- SimpleRedirect.java       2000/11/21 17:38:26     1.3
  +++ SimpleRedirect.java       2001/01/22 21:58:27     1.4
  @@ -65,7 +65,7 @@
   
   // Imported java.io classes
   import java.io.FileOutputStream;
  -import java.io.FileNotFoundException;
  +import java.io.IOException;
   
   /**
    *  Use the TraX interface to perform a transformation in the simplest 
manner possible
  @@ -74,7 +74,7 @@
   public class SimpleRedirect
   {
        public static void main(String[] args)
  -    throws TransformerException, TransformerConfigurationException, 
FileNotFoundException
  +    throws TransformerException, TransformerConfigurationException, 
IOException
     {  
       // Instantiate a TransformerFactory.
        TransformerFactory tFactory = TransformerFactory.newInstance();
  @@ -82,7 +82,7 @@
          // Use the TransformerFactory to instantiate a Transformer that will 
work with  
          // the stylesheet you specify. This method call also processes the 
stylesheet
       // into a compiled Templates object.
  -       Transformer transformer = tFactory.newTransformer(new 
StreamSource("foo.xsl"));
  +       Transformer transformer = tFactory.newTransformer(new 
StreamSource("1-redir.xsl"));
   
          // Use the transformer to apply the Templates object to an XML 
document
          // (foo.xml). The output that is not redirected by the stylesheet is
  
  
  

Reply via email to