sboag 00/08/07 14:30:14
Modified: java/src/org/apache/xalan/processor StylesheetProcessor.java
Log:
Add processFromNode(Node node, String systemID) function.
Revision Changes Path
1.4 +33 -0
xml-xalan/java/src/org/apache/xalan/processor/StylesheetProcessor.java
Index: StylesheetProcessor.java
===================================================================
RCS file:
/home/cvs/xml-xalan/java/src/org/apache/xalan/processor/StylesheetProcessor.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- StylesheetProcessor.java 2000/07/18 01:30:13 1.3
+++ StylesheetProcessor.java 2000/08/07 21:30:13 1.4
@@ -124,6 +124,39 @@
throw new ProcessorException("processFromNode failed", se);
}
}
+
+ /**
+ * The systemID that was specified in
+ * processFromNode(Node node, String systemID).
+ */
+ private String m_DOMsystemID = "";
+
+ /**
+ * The systemID that was specified in
+ * processFromNode(Node node, String systemID).
+ */
+ String getDOMsystemID()
+ {
+ return m_DOMsystemID;
+ }
+
+ /**
+ * Process the stylesheet from a DOM tree, if the
+ * processor supports the "http://xml.org/trax/features/dom/input"
+ * feature.
+ *
+ * @param node A DOM tree which must contain
+ * valid transform instructions that this processor understands.
+ * @param systemID The systemID from where xsl:includes and xsl:imports
+ * should be resolved from.
+ * @returns A Templates object capable of being used for transformation
purposes.
+ */
+ public Templates processFromNode(Node node, String systemID)
+ throws ProcessorException
+ {
+ m_DOMsystemID = systemID;
+ return processFromNode(node);
+ }
/**
* Process a series of inputs, treating them in import or cascade