Hi Colin,

> >>>>> "david" == david n bertoni <[EMAIL PROTECTED]> writes:
>
>     david> Hi Colin,
>
>     david> Transforming to a DOM is not really part of the standard,
>     david> so there are more than a few things that won't work.  I
>     david> don't know how we could implement this, since the DOM APIs
>     david> don't support adding a DOCTYPE node.  I think you would
>
> Hm. I am managing to do this by calling document.insertBefore (dtd,
> document.documentElement).
> This works witrh xerces-c (whether or not it is a legitimate think, I
> don't know).

It's a proprietary extension, although any C++ DOM can almost be considered
proprietary, I guess.  You can still do this with the DOM Xalan-C
generates, right?

>     david> have to do this when you create the document that you pass
>     david> to the FormatterToXercesDOM instance.  For more
>     david> information, see DOMImplementation::createDocumentType()
>     david> and DOMImplementation::createDocument()
>
> Well, since the doctype depends upon what is is the transform
> (i.e. coded on xsl:output), this is not possible (unless you
> specifically know which transform you are using, and I don't).

Yes, the typical chicken-and-egg problem.  There's no good solution, from
the DOM perspective.

Dave

Reply via email to