You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by co...@locus.apache.org on 2000/10/12 00:57:27 UTC

cvs commit: xml-xalan/java/src/org/apache/xalan/processor StylesheetProcessor.java

costin      00/10/11 15:57:25

  Modified:    java/src/org/apache/xalan/processor StylesheetProcessor.java
  Log:
  Ignore "feature not supported" exceptions, in case other parsers are used.
  
  Revision  Changes    Path
  1.8       +5 -1      xml-xalan/java/src/org/apache/xalan/processor/StylesheetProcessor.java
  
  Index: StylesheetProcessor.java
  ===================================================================
  RCS file: /home/cvs/xml-xalan/java/src/org/apache/xalan/processor/StylesheetProcessor.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- StylesheetProcessor.java	2000/10/11 03:36:04	1.7
  +++ StylesheetProcessor.java	2000/10/11 22:57:21	1.8
  @@ -162,7 +162,11 @@
       // If you set the namespaces to true, we'll end up getting double 
       // xmlns attributes.  Needs to be fixed.  -sb
       // reader.setFeature("http://xml.org/sax/features/namespace-prefixes", true);
  -    reader.setFeature("http://apache.org/xml/features/validation/dynamic", true);
  +    try {
  +	reader.setFeature("http://apache.org/xml/features/validation/dynamic", true);
  +    } catch( SAXException ex ) {
  +	// feature not recognized
  +    }
       reader.setContentHandler(builder);
       reader.parse(source);
       return builder.getTemplates();