APACHE FOP - 引用了实体“deg”,但没有声明

时间:2017-03-20 15:44:51

标签: xml xsl-fo apache-fop

chrTemplateFileName ../ laser_templates / pacPackingSlipESP-ESP.fo

                                                                              [INFO] Using org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser as SAX2 Parser
[INFO] Using org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser as SAX2 Parser
[INFO] FOP 0.20.5
[INFO] Using org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser as SAX2 Parser
[INFO] building formatting object tree
[INFO] setting up fonts
[ERROR] property 'xsi:nil' ignored
[ERROR] property 'xsi:nil' ignored
[Fatal Error] FopPckSlip20170320164044392.fo:89:101: The entity "deg" was referenced, but not declared.
[ERROR] The entity "deg" was referenced, but not declared.
Procedure complete. Press space bar to continue.

1 个答案:

答案 0 :(得分:1)

您的输入文件显然包含°,这是一个有效的 HTML 实体,但不是有效的 XML 实体(除非您自己声明)。

您可以将其替换为数字实体°