jxpath

Is it possible to transform javabeans with XSLT and JXPath?

Suppose I have a vanilla javabean: class Person { String firstName; String lastName; ... } Now suppose I want to transform this into another javabean: class Human { String name; ... } I'm currently using JXPath to help me transform one to the other: JXPathContext personContext = JXPathContext.newContext(person); JXPathCo...

Using JXPath to Query a List

I have a simple class (for testing purposes) that I am trying to Query against using JXPath. I create a list of various animal objects, and I want to get an Iterator for: All Animals where type='CAT' All Animals where numLegs = 4 Here is the simple class: public class Animal { private UUID uuid; private int numLegs; ...