Hi Thomas,
On 11/26/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
Typically the namespace is given with a prefix like: "xlink:href".
In this case href attribute in the xlink namespace, where the xlink prefix
to namespace mapping is defined (usually on the root svg element) with:
xmlns:xlink="http://www.w3.org/1999/xlink"
Since the flow root elements have to be in the Batik extension
namespace
you need to do something like:
// This establishes the mapping between the prefix 'batikExt' and
// the Batik extension namespace.
document.getRootElement().setAttributeNS(
"http://www.w3.org/2000/xmlns/",
"xmlns:batikExt",
"http://xml.apache.org/batik/ext");
// Create elements in the batik extension namespace
Element flow =
document.createElementNS("http://xml.apache.org/batik/ext",
"batikExt:flowText");
Ahh. That makes sense now that I've seen it.
As I have changed from using flowText to using flowRoot, should I use the
Batik extension namespace with them or leave everything in the SVG
namespace?
Thanks,
Phil
--
Visit http://www.darkisle.com for photos of castles, cairns and other
historic sites in the British Isles.