maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrius Velykis (JIRA)" <>
Subject [jira] (DOXIA-480) XhtmlBaseParser ignores XHTML default entities
Date Mon, 21 Jan 2013 15:40:13 GMT


Andrius Velykis updated DOXIA-480:

    Attachment: doxia-core-XhtmlBaseParser.patch

Added unit test to check that symbols from XHTML entities are parsed correctly to XhtmlBaseParserTest.

Updated the patch to include the tests.
> XhtmlBaseParser ignores XHTML default entities
> ----------------------------------------------
>                 Key: DOXIA-480
>                 URL:
>             Project: Maven Doxia
>          Issue Type: Bug
>          Components: Core, Module - Xhtml
>    Affects Versions: 1.4
>            Reporter: Andrius Velykis
>         Attachments: doxia-core-XhtmlBaseParser.patch, doxia-core-XhtmlBaseParser.patch,
> XHTML defines a number of default entities that can appear in valid XHTML files (,
such as left/right quotes: &ldquo;, &rsquo;, and many others.
> XhtmlBaseParser, however, ignores XHTML default entities appearing in the source code.
This is because it delegates the parsing to AbstractXmlParser, which uses vanilla MXParser
to parse. MXParser only recognises default XML entities.
> Because the HTML entities are not resolved by the XML parser, and thus by the XHTML parser,
they are not rendered by the XHTML module. I have attached a sample project for Maven site
that uses XHTML module. The source file has double/single quotes, however the output file
does not.
> This also affects other parsers that extend XhtmlParser, e.g. MarkdownParser (see DOXIA-473
for a reported bug). This is because Pegdown library, used to parse Markdown, generates &ldquo;
for quotes and other entities.
> I have attached a patch that fixes this problem. It exposes the XmlPullParser (MXParser)
for configuration before parsing, so that extending classes could define default entities.
Then XhtmlBaseParser adds default XHTML entities to the parser. This patch will also fix DOXIA-473,
because MarkdownParser extends XhtmlParser.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message