APT anchors are parsed to invalid XML in xdoc book
--------------------------------------------------
Key: DOXIA-368
URL: http://jira.codehaus.org/browse/DOXIA-368
Project: Maven Doxia
Issue Type: Bug
Components: Book, Module - Xdoc
Affects Versions: 1.1.1
Reporter: Dave Syer
APT anchors are parsed to invalid XML in xdoc book. E.g. start with APT like
this
{code}
{Section Title}
La la la la
{code}
and then include this document in a book with "xdoc" format. You get an
invalid XML document which then fails when it is being turned into HTML for the
site:
{noformat}
[ERROR] Error parsing
/home/dsyer/dev/admin/code/target/generated-site/xdoc/reference/jobs.xml: line
[-1] Error parsing the model: markup not allowed inside attribute value -
illegal < (position: END_TAG seen ...<section name="<... @1:676)
org.apache.maven.doxia.parser.ParseException: Error parsing the model: markup
not allowed inside attribute value - illegal < (position: END_TAG seen
...<section name="Add your Own <... @1:676)
at
org.apache.maven.doxia.parser.AbstractXmlParser.parse(AbstractXmlParser.java:57)
at
org.apache.maven.doxia.module.xdoc.XdocParser.parse(XdocParser.java:99)
at org.apache.maven.doxia.DefaultDoxia.parse(DefaultDoxia.java:59)
at
org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.renderDocument(DefaultSiteRenderer.java:342)
{noformat}
The xml is invlaid because it has {{<section name="<a
name="Section_Title"/>".../>}}.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira