Yeah, it looks like I will end up doing just that. Is there any easy
way to do this? I feel like what I have now is overkill as it goes
through DOM first:
// merge template and context into result string
String result;
org.apache.xerces.parsers.DOMParser parser = new DOMParser(); //
xerces parser
// set a bunch of custom properties on the parser
InputSource source = new InputSource(new BufferedReader(new
StringReader(result)));
parser.parse(source);
org.w3c.dom.Document domDoc = parser.getDocument();
org.jdom.input.DOMBuilder builder = new DOMBuilder();
org.jdom.Document jdomDoc = builder.build(domDoc)
- Bradley
On Sep 15, 2008, at 11:51 AM, Will Glass-Husain wrote:
Can't you just re-parse the resulting XML doc with JDOM?
WILL
On Sun, Sep 14, 2008 at 10:05 AM, Bradley Wagner <
[EMAIL PROTECTED]> wrote:
Sorry, I think I was unclear. I'm looking to take the result of
Velocity
transformation a JDOM Document and turn it back into a JDOM
Document, so
that I can continue processing it later with XSLT or anything else.
Bradley
On Sep 14, 2008, at 8:00 AM, Robert Koberg wrote:
On Sep 13, 2008, at 11:11 PM, Bradley Wagner wrote:
Hey Folks,
I already have an application that uses Xalan to do XSLT
transformations.
I know that it's easy take JDOM Document and feed it into the
Velocity
Engine for transformation (e.g. Anakia), but I'm looking for an
easy way to
get the result back as a JDOM Document again assuming one can be
created.
Check out:
http://www.jdom.org/docs/apidocs/org/jdom/transform/JDOMResult.html
-Rob
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Forio Business Simulations
Will Glass-Husain
[EMAIL PROTECTED]
www.forio.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]