Andreas Delmelle-2 wrote:
Should be possible, if I understand the question correctly:
Document newDoc = docBuilder.newDocument();
newDoc.setDocumentURI(FO_NAMESPACE);
Element root = newDoc.createElementNS(FO_NAMESPACE, block);
Element leader = newDoc.createElementNS(FO_NAMESPACE,
Thanks for the reply.. It works great.
The problem now, is that i have 2 to choose from.. :) Solution One:
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
DocumentBuilder docBuilder = factory.newDocumentBuilder();
Document newDoc = docBuilder.newDocument();
I've used the example code in the class ExampleXML2PDF from the FOP 0.95
distribution to see what fop can do.
I'm trying to write a java extension function for the stylesheet and in the
function return a org.w3c.dom.Node element. My problem is, i cannot find a
easy way to construct such an