return;
}
String sourceAtt = atts.getValue(SRC_ATTR);
if (null == sourceAtt || "".equals(sourceAtt)) {
throw new ProcessingException("The <include> element must contain a 'src' attribute that contains a URL.");
}
try {
URL source = this.createSource(sourceAtt);
XMLReader xmlReader = XMLReaderFactory.createXMLReader();
EmbeddedSAXPipe embeddedSAXPipe = new EmbeddedSAXPipe(this.getSAXConsumer());
xmlReader.setContentHandler(embeddedSAXPipe);
xmlReader.setProperty("http://xml.org/sax/properties/lexical-handler", embeddedSAXPipe);
BufferedInputStream inputStream = new BufferedInputStream(source.openStream());
xmlReader.parse(new InputSource(inputStream));
return;
} catch (IOException e) {
throw new ProcessingException(("Can't read from URL " + sourceAtt), e);
}
}