result.addAll(getStyleSheets(n.getFirstChild(), uri));
}
break;
case Node.PROCESSING_INSTRUCTION_NODE:
if (n.getNodeName().equals("xml-stylesheet")) {
HashTable attrs = new HashTable();
attrs.put("alternate", "no");
attrs.put("media", "all");
DOMUtilities.parseStyleSheetPIData(n.getNodeValue(), attrs);
String type = (String)attrs.get("type");
if ("text/xsl".equals(type)) {
DocumentFactory df =
new DocumentFactory(GenericDOMImplementation.
getDOMImplementation(),
"org.apache.crimson.parser.XMLReaderImpl");
String href = (String)attrs.get("href");
URL url = new URL(new URL(uri), href);
InputSource is = new InputSource(url.toString());
Document doc = df.createDocument(XSL_NAMESPACE_URI,
"stylesheet",
url.toString(),