I was just doing some performance testing and discovered that changing
all my xpath expressions like this:
String str = document.valueOf("/article/title");
to
Element root = document.getRootElement();
String str = root.elementText("title");
Created a huge performance speedup. This makes sense I g
On Jan 29, 2005, at 12:55 PM, Edwin Dankert wrote:
I'm not sure if I understand fully what you're trying to do?
Could you give an example of an input and output document
and maybe some code?
Sure, example document:
This is my test document
This is some content with an entity here: &myent;
The
Does anyone have a good solution to doing entity substitution? I'm
attempting to substitute some entities with strings and some with other
entities (mostly to create an HTML or plain text representation). I'm
already using XSLT to transform to HTML/text but it doesn't seem to
have support for t
On Jan 26, 2005, at 5:45 AM, Edwin Dankert wrote:
It seems to be relatively easy to change the code but I am not sure
what the full impact would be (SAXSource expects a document) ...
probably as Paul suggested sub-classing DocumentSource would be the
best solution?
I'm going to attempt to add suppo
I've been playing around with XSLT with dom4j, if I create a
org.dom4j.io.DocumentSource with a Node the entire Document gets passed
the transformer. I would like to be able to apply XSLT to individual
Nodes, not the entire Document so I would like / in the XSLT
transformer to be the root of th