Hi Colin,

Transforming to a DOM is not really part of the standard, so there are more
than a few things that won't work.  I don't know how we could implement
this, since the DOM APIs don't  support adding a DOCTYPE node.  I think you
would have to do this when you create the document that you pass to the
FormatterToXercesDOM instance.  For more information, see
DOMImplementation::createDocumentType() and
DOMImplementation::createDocument()

Dave



|---------+--------------------------->
|         |           Colin Paul Adams|
|         |           <[EMAIL PROTECTED]|
|         |           mon.co.uk>      |
|         |                           |
|         |           07/08/2003 03:52|
|         |           AM              |
|---------+--------------------------->
  
>-----------------------------------------------------------------------------------------------------------------|
  |                                                                             
                                    |
  |        To:      [email protected]                                
                                    |
  |        cc:      (bcc: David N Bertoni/Cambridge/IBM)                        
                                    |
  |        Subject: xsl:output and outputting a Xerces DOM                      
                                    |
  
>-----------------------------------------------------------------------------------------------------------------|



By inspection, when the output is to a xerces DOM, a DOCUMENTTYPE node
is not inserted into the DOM, even if xsl:output is coded to provide a
doctype-system and doctype-public.

I realise it is optional for an implementation to do this. Is it
possible to have xalan do this as an option?
--
Colin Paul Adams
Preston Lancashire


Reply via email to