Description of problem: The webtrans gives falae warning on an XML numeric entity (ϧ) if it has a space in the front. For example, webtrans show warning on "Web "" but not "Web"" Version-Release number of selected component (if applicable): Zanata version 1.7.0-alpha-2-SNAPSHOT (20120723-0951) How reproducible: Alwways Steps to Reproduce: 1. Visit a document. 2. Type "Web "" in any empyy entry. Actual results: Validation Warning: XML entity [ " ] is incomplete Expected results: No Validation Warning: Additional info: XML character entity reference (such as ) does not seem to trigger the validation warning.
Assigning to Zanata Dev Team for evaluation
Implemented fix. See https://github.com/zanata/zanata/commit/6419da9d49a8f49a0920652f9e063d198f784139
I think this is the sort of thing we need to fix in 1.7.x.
Fix backported to 1.7.2.
Tested with 1.8.0-SNAPSHOT (20120806-0025) and 1.7.2-SNAPSHOT (20120806-0012) The "Web "" no longer gives false warning, however, they failed to give warning in following cases: &#YKK; &#BBRR; In other words, xml numeric entities that are neither decimal nor hexadecimal should produce warning like "invalid xml numeric entity". http://en.wikipedia.org/wiki/Numeric_character_reference shows the valid format and restrictios. Reassigned.
Implemented numeric xml entity validation. See https://github.com/zanata/zanata/commit/7eb7e4793d8c1d5fefc5c5e545c5c45e2c363e74
VERIFIED with 1.8.0-SNAPSHOT (20120809-0024) and 1.7.2-SNAPSHOT (20120809-0001)