You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Dave Syer (JIRA)" <ji...@codehaus.org> on 2009/11/19 09:43:55 UTC
[jira] Created: (DOXIA-368) APT anchors are parsed to invalid XML
in xdoc book
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
[jira] (DOXIATOOLS-20) APT anchors are parsed to invalid XML in
xdoc book
Posted by "Dennis Lundberg (JIRA)" <ji...@codehaus.org>.
[ https://jira.codehaus.org/browse/DOXIATOOLS-20?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dennis Lundberg moved DOXIA-368 to DOXIATOOLS-20:
-------------------------------------------------
Component/s: (was: Module - Xdoc)
(was: Book)
Book
Affects Version/s: (was: 1.1.1)
Key: DOXIATOOLS-20 (was: DOXIA-368)
Project: Maven Doxia Tools (was: Maven Doxia)
> APT anchors are parsed to invalid XML in xdoc book
> --------------------------------------------------
>
> Key: DOXIATOOLS-20
> URL: https://jira.codehaus.org/browse/DOXIATOOLS-20
> Project: Maven Doxia Tools
> Issue Type: Bug
> Components: Book
> 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, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira