Maven Doxia

Unable to get custom entity references to work

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.1
  • Fix Version/s: 1.1.1
  • Component/s: Core
  • Labels:
    None
  • Environment:
    maven-site-plugin 2.1-SNAPSHOT w/ XDOC
  • Testcase included:
    yes
  • Number of attachments :
    1

Description

followed these instructions:
http://svn.apache.org/viewvc/maven/doxia/site/src/site/fml/faq.fml?annotate=739143&pathrev=739143

to include these entity references:
http://kallisti.eoti.org/ambrosia/kallisti/trit.ent

included test case has 3 different examples:
1. using the character references defined in the trit.ent. Character references were removed from the table during site:site
2. using the character references by number. Character references were replaced with '?' during site:site
3. copied site generated test2 and added the character references in by hand. That is the only one that works.

Issue Links

Activity

Hide
Malachi de AElfweald added a comment -

This should not be 'major' priority. Sorry, forgot to set that.

Show
Malachi de AElfweald added a comment - This should not be 'major' priority. Sorry, forgot to set that.
Hide
Lukas Theussl added a comment -

There must be something wrong with the regex pattern used to parse the entities. I checked that with the following local declarations

<!ENTITY tritPos     "&#x1d7ed;"> <!-- MATHEMATICAL SANS-SERIF BOLD DIGIT ONE -->
<!ENTITY tritNeg     "&#x1d7d9;"> <!-- MATHEMATICAL DOUBLE-STRUCK DIGIT ONE -->
<!ENTITY tritNeu     "&#x1d7f6;"> <!-- MATHEMATICAL MONOSPACE DIGIT ZERO -->
<!ENTITY MyAlpha     "&#913;"> <!-- greek capital letter alpha, U+0391 -->

only MyAlpha gets added to the list of entities in addDTDEntities of AbstractXmlParser.

Show
Lukas Theussl added a comment - There must be something wrong with the regex pattern used to parse the entities. I checked that with the following local declarations
<!ENTITY tritPos     "&#x1d7ed;"> <!-- MATHEMATICAL SANS-SERIF BOLD DIGIT ONE -->
<!ENTITY tritNeg     "&#x1d7d9;"> <!-- MATHEMATICAL DOUBLE-STRUCK DIGIT ONE -->
<!ENTITY tritNeu     "&#x1d7f6;"> <!-- MATHEMATICAL MONOSPACE DIGIT ZERO -->
<!ENTITY MyAlpha     "&#913;"> <!-- greek capital letter alpha, U+0391 -->
only MyAlpha gets added to the list of entities in addDTDEntities of AbstractXmlParser.
Hide
Vincent Siveton added a comment -

allow pattern to accept 5 chars, snapshot redeployed.

Show
Vincent Siveton added a comment - allow pattern to accept 5 chars, snapshot redeployed.
Hide
Malachi de AElfweald added a comment -

verified that customized entity names work now

Show
Malachi de AElfweald added a comment - verified that customized entity names work now

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: