try { reader.setFeature("http: } catch( SAXException ex ) {
try { reader.setFeature("http: true);
  public Templates process(InputSource source)    throws ProcessorException, SAXException, IOException  {    TemplatesBuilder builder = getTemplatesBuilder();    builder.setBaseID(source.getSystemId());    XMLReader reader = this.getXMLReader();    if(null == reader)    {      reader = XMLReaderFactory.createXMLReader();    }    // 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);    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();  }