- assigned_to: nobody --> balls
I'm not sure whether this is an enhancement request or
a bug fix request or what. My post to the tclxml
mailing list, and Steve's reply, was this:
---
> I'm creating a tree from scratch, and want to get a
processing instruction in
> at the top. I want, for example, this:
>
> <?xml version="1.0">
> <?xml-stylesheet type="text/xsl" href="test_view.xsl"?>
> <!DOCTYPE test SYSTEM "test.dtd">
> <test />
>
> How do I get the stylesheet PI in there? I have a bit
of code like this:
Ouch! It doesn't fit in with what TclDOM is trying to do,
which is to manage the serialisation of the DOM tree on
your behalf.
I think we'll need to make the DocType an explicit node.
This will allow other nodes to be inserted before and
after.
As a workaround, I'd switch off serialising the document
prologue and do that in the script by prepending to the
output of the serialised document.
---
My application juggles several dozen XML documents so
the workaround is no easy matter in my case.