Hi Joe,
Christine is right for the serializer that is packaged with Xalan, but are
you using the Xerces serializer?

Your note had this code:
<<
OutputFormat format = new OutputFormat ("xml", encoding, indentResult);
format.setOmitXMLDeclaration (true);
serializer = new XMLSerializer (outputStream, format);
>>
but both OutputFormat and XMLSerializer are classes defined in
xercesImpl.jar.

To use the Xalan serializer look at the example on
http://xml.apache.org/xalan-j/apidocs/org/apache/xml/serializer/Serializer.html.
 The example on that javadoc page shows you how to create and use a
serializer from Xalan.

If you are using this serializer then Christine's comments on
XMLEntities.properties apply,  otherwise you have to pass the question to
the Xerces mailing list ( j-dev@xerces.apache.org ).


- Brian
- - - - - - - - - - - - - - - - - - - -
Brian Minchau, Ph.D.
XSLT Development, IBM Toronto
(780) 431-2633
e-mail:        [EMAIL PROTECTED]

----- Forwarded by Brian Minchau/Toronto/IBM on 08/29/2006 10:54 AM -----
                                                                       
             Christine                                                 
             Li/Toronto/[EMAIL PROTECTED]                                       
  
             MCA                                                        To
                                       Nirmal JS <[EMAIL PROTECTED]>
             08/29/2006 10:07                                           cc
             AM                        xalan-j-users@xml.apache.org    
                                                                   Subject
                                       Re: Apostrophe problem with xalan
                                       2.7.0                           
                                                                       
                                                                       
                                                                       
                                                                       
                                                                       
                                                                       





Hi, Nirmal

For XML output, only <, &, ", > will be escaped. If you want to escape ? ?
?, you can create your own org.apache.xml.serializer.XMLEntities.properties
file to replace the default one.

Christine Li
XSLT Development
IBM Toronto Lab
Tel: (905)413-2601
Email: [EMAIL PROTECTED]

                                                                       
 Nirmal JS <[EMAIL PROTECTED]>                                    
 Sent by: news <[EMAIL PROTECTED]>                                    
                                                                       
                                                                        To
 29/08/2006 03:50 AM                               [EMAIL PROTECTED]
                                                   e.org               
                                                                        cc
                                                                       
                                                                   Subject
                                                   Apostrophe problem with
                                                   xalan 2.7.0         
                                                                       
                                                                       
                                                                       
                                                                       
                                                                       
                                                                       
                                                                       





Hi everyone,

While using xalan 2.1.0 and xerces 1.4.3 jars, the out file will have
the ?&apos;? in place of
? ? ? Literal in input file.
When we use the latest version of xalan 2.7.0 and xerces 2.8.0, it will
result
the same ? ? ? literal in out file,

The classes and methods that we suspected regarding this conversion are


OutputFormat format = new OutputFormat ("xml", encoding, indentResult);

format.setOmitXMLDeclaration (true);

serializer = new XMLSerializer (outputStream, format);



We need ?&apos;? in output file, can anyone help me in this regard.


Thanks and Regards
Nirmal JS
[EMAIL PROTECTED]


Reply via email to