Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Major
-
Resolution: Won't Fix
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
-
Environment:Any
-
Testcase included:yes
-
Patch Submitted:Yes
-
Number of attachments :
Description
I needed to build XPath support for Jericho locally, so I created custom implementations of Navigator and XPath to do this. I would like to contribute the code to the Jaxen project. I have attached the three java files (DocumentNavigator.java, JerichoXPath.java and a test JerichoNavigatorTest.java).
The first two would go into the main directory as a sibling of jdom and dom4j packages and the last one would go into the test directory.
Additional dependencies are jericho-html-2.5.jar, commons-logging.jar and log4j.jar (although the last two can be removed if you remove/replace the log.warn messages in the catch blocks in DocumentNavigator).
Adding all the navigators directly into Jaxen was a mistake, and one we are hoping to cure in the near future. It causes significant problems for other projects that depend on jaxen because they then pull in dependencies on XOM, JDOM, dom4j, and so on that they usually don't need. This is especially true for maven based projects. Your proposal would, I'm afraid, make the situation worse by adding additional dependencies to everyone who builds jaxen.
I suspect we'll keep the DOM navigator in the core since it only really depends on the JDK these days, but we'll move the others into new projects.
Once this move is complete, perhaps we could consider hosting your navigator as a subproject of jaxen on Codehaus or some such, but it really shouldn't be bundled with the core.