#12 manual generation fails with some Java XML implementations

Current_Trunk
closed
nobody
None
5
2014-06-17
2014-03-04
No

If gcj-jdk is used as java implementation, the generation of the HTML manual out of cp2k_input.xml fails like this:

Error on line 5 column 20 of cp2k_input.xml:
SXXP0003: Error reported by XML parser: malformed reference in entity value: "&"
Transformation failed: Run-time errors were reported

According to http://www.w3.org/TR/REC-xml/#sec-predefined-ent, the amp entry in a predefined entry section should be double-escaped, (the SourceForge website is apparently too clever, so I am leaving this out here, see the attached patch).

If I do this, the HTML is generated fine (note that the above link also says the lt entry should be escaped similarly, but at least in that Java XML implementation, this is not needed.

Patch attached.

1 Attachments

Discussion

  • Michael Banck

    Michael Banck - 2014-03-04

    Oops, the patch has some boilerplate at the beginning I didn't notice. Sorry about that.

     
  • Matthias Krack

    Matthias Krack - 2014-03-04

    The double escaping for amp and lt has been applied to the trunk and the 2.5 release version. Please check.

     
  • Matthias Krack

    Matthias Krack - 2014-06-17
    • status: open --> closed
     
  • Matthias Krack

    Matthias Krack - 2014-06-17

    It is assumed the issue has been fixed as there is no further feedback.

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks