You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by jk...@apache.org on 2001/04/10 20:51:47 UTC
cvs commit: xml-xalan/java/src/org/apache/xml/utils PrefixResolver.java
jkesselm 01/04/10 11:51:47
Modified: java/src/org/apache/xml/utils Tag: DTM_EXP
PrefixResolver.java
Log:
Minor javadoc tweak
Revision Changes Path
No revision
No revision
1.1.2.1 +14 -5 xml-xalan/java/src/org/apache/xml/utils/PrefixResolver.java
Index: PrefixResolver.java
===================================================================
RCS file: /home/cvs/xml-xalan/java/src/org/apache/xml/utils/PrefixResolver.java,v
retrieving revision 1.1
retrieving revision 1.1.2.1
diff -u -r1.1 -r1.1.2.1
--- PrefixResolver.java 2000/11/23 04:58:45 1.1
+++ PrefixResolver.java 2001/04/10 18:51:47 1.1.2.1
@@ -58,15 +58,17 @@
/**
* <meta name="usage" content="advanced"/>
- * The class that implements this interface can resolve prefixes
- * to namespaces.
+ * The class that implements this interface can resolve prefixes to
+ * namespaces. Examples would include resolving the meaning of a
+ * prefix at a particular point in a document, or mapping the prefixes
+ * used in an XPath expression.
*/
public interface PrefixResolver
{
/**
* Given a namespace, get the corrisponding prefix. This assumes that
- * the PrevixResolver hold's it's own namespace context, or is a namespace
+ * the PrefixResolver holds its own namespace context, or is a namespace
* context itself.
*
* @param prefix The prefix to look up, which may be an empty string ("") for the default Namespace.
@@ -77,12 +79,12 @@
String getNamespaceForPrefix(String prefix);
/**
- * Given a namespace, get the corrisponding prefix, based on the node context.
+ * Given a namespace, get the corresponding prefix, based on the context node.
*
* @param prefix The prefix to look up, which may be an empty string ("") for the default Namespace.
* @param context The node context from which to look up the URI.
*
- * @return The associated Namespace URI, or null if the prefix
+ * @return The associated Namespace URI as a string, or null if the prefix
* is undeclared in this context.
*/
String getNamespaceForPrefix(String prefix, org.w3c.dom.Node context);
@@ -92,6 +94,13 @@
*
* @return The base identifier from where relative URIs should be absolutized, or null
* if the base ID is unknown.
+ * <p>
+ * CAVEAT: Note that the base URI in an XML document may vary with where
+ * you are in the document, if part of the doc's contents were brought in
+ * via an external entity reference or if mechanisms such as xml:base have
+ * been used. Unless this PrefixResolver is bound to a specific portion of
+ * the document, or has been kept up to date via some other mechanism, it
+ * may not accurately reflect that context information.
*/
public String getBaseIdentifier();
}
---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org