MohamedSaeed / xdocreport

Automatically exported from code.google.com/p/xdocreport
1 stars 0 forks source link

SyntaxKind.Html and symbol & #396

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hello!
I am try to use the following example:

            FieldsMetadata metadata = report.createFieldsMetadata();
             metadata.addFieldAsTextStyling("comments",
             SyntaxKind.Html);

            IContext context = report.createContext();
            context.put("comments", "1&2");

Unfortunately i get error:

[Fatal Error] :1:6070: The entity name must immediately follow the '&' in the 
entity reference.
апр 30, 2014 11:06:15 PM 
fr.opensagres.xdocreport.document.textstyling.AbstractTextStylingTransformer 
transform
SEVERE: The entity name must immediately follow the '&' in the entity reference.

Can not use symbol "&" and SyntaxKind.Html together? 

Version of the product used: 1.0.4

Original issue reported on code.google.com by zopoe...@gmail.com on 30 Apr 2014 at 7:11

GoogleCodeExporter commented 9 years ago
HTML syntax is parsed with SAX Parser. If you wish to use '&' in your HTML, you 
must write '&' and not '&'.

Original comment by angelo.z...@gmail.com on 30 Apr 2014 at 9:40

GoogleCodeExporter commented 9 years ago

Original comment by angelo.z...@gmail.com on 7 Aug 2014 at 6:47

GoogleCodeExporter commented 9 years ago
cleanup

Original comment by pascal.leclercq on 10 Oct 2014 at 7:37