sboag 00/11/15 14:25:11
Modified: java/src/org/apache/xalan/processor StylesheetHandler.java
java/src/org/apache/xalan/stree SourceTreeHandler.java
Log:
Changed TransformerHandler#setBaseID to setSystemId (sorry), and
added getSystemId to both TransformerHandler and TemplatesHandler.
Fixed setURIResolver comments to accurately reflect use in the
document() function vs. xsl:include/xsl:import.
Revision Changes Path
1.24 +11 -0
xml-xalan/java/src/org/apache/xalan/processor/StylesheetHandler.java
Index: StylesheetHandler.java
===================================================================
RCS file:
/home/cvs/xml-xalan/java/src/org/apache/xalan/processor/StylesheetHandler.java,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -r1.23 -r1.24
--- StylesheetHandler.java 2000/11/15 18:08:59 1.23
+++ StylesheetHandler.java 2000/11/15 22:25:11 1.24
@@ -301,6 +301,17 @@
{
pushBaseIndentifier(baseID);
}
+
+ /**
+ * Get the base ID (URI or system ID) from where relative
+ * URLs will be resolved.
+ * @return The systemID that was set with [EMAIL PROTECTED] #setSystemId}.
+ */
+ public String getSystemId()
+ {
+ return this.getBaseIdentifier();
+ }
+
////////////////////////////////////////////////////////////////////
// Implementation of the EntityResolver interface.
1.19 +12 -1
xml-xalan/java/src/org/apache/xalan/stree/SourceTreeHandler.java
Index: SourceTreeHandler.java
===================================================================
RCS file:
/home/cvs/xml-xalan/java/src/org/apache/xalan/stree/SourceTreeHandler.java,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -r1.18 -r1.19
--- SourceTreeHandler.java 2000/11/13 16:27:07 1.18
+++ SourceTreeHandler.java 2000/11/15 22:25:11 1.19
@@ -842,7 +842,7 @@
* URLs will be resolved.
* @param baseID Base URL for the source tree.
*/
- public void setBaseID(String baseID)
+ public void setSystemId(String baseID)
{
m_transformer.setBaseURLOfSource(baseID);
@@ -851,6 +851,17 @@
stm.putDocumentInCache(m_root, new StreamSource(baseID));
}
+
+ /**
+ * Get the base ID (URI or system ID) from where relative
+ * URLs will be resolved.
+ * @return The systemID that was set with [EMAIL PROTECTED] #setSystemId}.
+ */
+ public String getSystemId()
+ {
+ return m_transformer.getBaseURLOfSource();
+ }
+
/**
* Get the Transformer associated with this handler, which