On Wed, 2002-06-05 at 08:45, Juergen Lippold wrote:
> OK so let's start,
>
> now I have got a Method to create the document, after this part I add some rows and
>colomns to the table.
> So I'm allways adding Elements with or without attributes.
> The result is the fo-file I already sent.
>
> Element root = createChild(doc, doc, "fo:root");
> root.setAttribute("xmlns:fo", "http://www.w3.org/1999/XSL/Format");
> ...
According to this:
http://xml.apache.org/xerces2-j/javadocs/api/org/w3c/dom/Element.html#setAttribute(java.lang.String,
java.lang.String)
you have set the foot element with the attribute name "xmlns:fo" and
value "http://www.w3.org/1999/XSL/Format".
You want to set the the attribute with the namespace, try
setAttributeNS. You need to set the namespace correctly everywhere.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]