There's 2 different ways:

<xsl:output ... omit-xml-declaration="yes"/> in your stylesheet, or

OutputFormat.setOmitXMLDeclaration(true) in the OutputFormat object passed
to the XMLSerializer you're using.

C





                                                                                
                                                       
                                                                                
                                                       
                                               To:       "Xerces-J-User 
\(E-mail\)" <[EMAIL PROTECTED]>                     
                      "Shital Joshi"           cc:       (bcc: Constantine 
Georges/Towers Perrin)                                      
                      <[EMAIL PROTECTED]        Subject:  Stylesheet 
problem......                                                      
                      m>                                                        
                                                       
                                                                                
                                                       
                      06/26/2003 02:23                                          
                                                       
                      PM                                                        
                                                       
                      Please respond to                                         
                                                       
                      xerces-j-user                                             
                                                       
                                                                                
                                                       
                                                                                
                                                       




Hi there,

I am translating an XML document to HTML document. The translation works
fine and the HTML page looks nice. But when I view source of that HTML
page,
I still see XML declaration. (<?xml version="1.0" encoding="utf-8"?>). Can
anyone suggest how to remove that?

Thanks,
-Shital Joshi
MFG Systems



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]







---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to