You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by mi...@apache.org on 2004/01/12 18:56:21 UTC
cvs commit: cocoon-lenya/src/java/org/apache/lenya/xml XPointerFactory.java
michi 2004/01/12 09:56:21
Modified: src/java/org/apache/lenya/xml XPointerFactory.java
Log:
utility method added
Revision Changes Path
1.15 +19 -5 cocoon-lenya/src/java/org/apache/lenya/xml/XPointerFactory.java
Index: XPointerFactory.java
===================================================================
RCS file: /home/cvs/cocoon-lenya/src/java/org/apache/lenya/xml/XPointerFactory.java,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -r1.14 -r1.15
--- XPointerFactory.java 15 Dec 2003 17:31:49 -0000 1.14
+++ XPointerFactory.java 12 Jan 2004 17:56:21 -0000 1.15
@@ -173,12 +173,12 @@
}
/**
- * Select nodes by xpaths
+ * Select nodes by xpointer
*
- * @param node DOCUMENT ME!
- * @param reference DOCUMENT ME!
+ * @param node Document Node
+ * @param reference xmls(...)xpointer(...)
*
- * @return DOCUMENT ME!
+ * @return nodes
*
* @exception Exception ...
*/
@@ -198,6 +198,20 @@
}
return nodes;
+ }
+
+ /**
+ * Select nodes by xpointer and return node at specific position
+ *
+ * @param node Document Node
+ * @param reference xmls(...)xpointer(...)
+ *
+ * @return node
+ *
+ * @exception Exception ...
+ */
+ public Node selectAt(Node node, String reference, int i) throws Exception {
+ return (Node)select(node, reference).elementAt(i);
}
/**
---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-cvs-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-cvs-help@cocoon.apache.org