public StylesheetInfo[] getStylesheets(org.w3c.dom.Document doc) {
List list = new ArrayList();
//get the processing-instructions (actually for XmlDocuments)
//type and href are required to be set
NodeList nl = doc.getChildNodes();
for (int i = 0, len = nl.getLength(); i < len; i++) {
Node node = nl.item(i);
if (node.getNodeType() != Node.PROCESSING_INSTRUCTION_NODE) continue;
ProcessingInstruction piNode = (ProcessingInstruction) node;
if (!piNode.getTarget().equals("xml-stylesheet")) continue;
StylesheetInfo info = new StylesheetInfo();
info = new StylesheetInfo();