/** * Returns the pseudo attributes in a table. */ public HashMap<String, String> getPseudoAttributes() { if (pseudoAttributes == null) { pseudoAttributes = new HashMap<String, String>(); pseudoAttributes.put("alternate", "no"); pseudoAttributes.put("media", "all"); DOMUtilities.parseStyleSheetPIData(data, pseudoAttributes); } return pseudoAttributes; }
/** * Returns the pseudo attributes in a table. */ public HashMap<String, String> getPseudoAttributes() { if (pseudoAttributes == null) { pseudoAttributes = new HashMap<String, String>(); pseudoAttributes.put("alternate", "no"); pseudoAttributes.put("media", "all"); DOMUtilities.parseStyleSheetPIData(data, pseudoAttributes); } return pseudoAttributes; }
/** * Extracts the first XSL processing instruction from the input * XML document. */ protected String extractXSLProcessingInstruction(Document doc) { Node child = doc.getFirstChild(); while (child != null) { if (child.getNodeType() == Node.PROCESSING_INSTRUCTION_NODE) { ProcessingInstruction pi = (ProcessingInstruction)child; HashMap<String, String> table = new HashMap<String, String>(); DOMUtilities.parseStyleSheetPIData(pi.getData(), table); Object type = table.get(PSEUDO_ATTRIBUTE_TYPE); if (XSL_PROCESSING_INSTRUCTION_TYPE.equals(type)) { Object href = table.get(PSEUDO_ATTRIBUTE_HREF); if (href != null) { return href.toString(); } else { return null; } } } child = child.getNextSibling(); } return null; }
/** * Extracts the first XSL processing instruction from the input * XML document. */ protected String extractXSLProcessingInstruction(Document doc) { Node child = doc.getFirstChild(); while (child != null) { if (child.getNodeType() == Node.PROCESSING_INSTRUCTION_NODE) { ProcessingInstruction pi = (ProcessingInstruction)child; HashTable table = new HashTable(); DOMUtilities.parseStyleSheetPIData(pi.getData(), table); Object type = table.get(PSEUDO_ATTRIBUTE_TYPE); if (XSL_PROCESSING_INSTRUCTION_TYPE.equals(type)) { Object href = table.get(PSEUDO_ATTRIBUTE_HREF); if (href != null) { return href.toString(); } else { return null; } } } child = child.getNextSibling(); } return null; }
/** * Returns the pseudo attributes in a table. */ public HashTable getPseudoAttributes() { if (pseudoAttributes == null) { pseudoAttributes = new HashTable(); pseudoAttributes.put("alternate", "no"); pseudoAttributes.put("media", "all"); DOMUtilities.parseStyleSheetPIData(data, pseudoAttributes); } return pseudoAttributes; }