I'm using eXist-db within my java web application (mvc paradigm). I want to retrieve xml data from the database, then transform this xml with a XSLT transformation. Here are the steps I go through.
I query the database and I get an
XMLResource, or aResourceSetas result.Now I've got to transform the XML I retrieved from the database (as XMLResource) with a XSLT transformation.
Since XSLT transformations (using
javax.xml.transform.Transformer) need a xml Source as parameter, I've got to convert from XMLResource to StreamSource.
But is this the best way to handle an xml resource? Should I convert my XMLResource in something else instead?