[ http://jira.codehaus.org/browse/DOXIA-129?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_103527 ]
Dennis Lundberg commented on DOXIA-129: --------------------------------------- I've had a look at this. The head element is currently not parsed at all, so it ends up inside the document. There are mechanisms in Sink to handle <meta name="author" .../> and <meta name="date" .../> but not for <meta name="keyword" .../>. So in order for this to work we need to add the methods Sink.keyword() and Sink.keyword_(). That said I haven't succeeded in parsing author and date correctly. Also, there is no standard set of meta names that are valid. We would have to specify that ourselves in the DTD/XSD. See http://www.w3.org/TR/html401/struct/global.html#h-7.4.4 > Allow correctly head element in xdoc > ------------------------------------ > > Key: DOXIA-129 > URL: http://jira.codehaus.org/browse/DOXIA-129 > Project: Maven Doxia > Issue Type: Bug > Components: Module - Xdoc > Affects Versions: 1.0-alpha-9 > Reporter: Vincent Siveton > Fix For: 1.0-beta-1 > > > head element is actually allowed *but* not correctly processed by the parser: > the content of head is directly put in the core of the document. > Here is a short sample: the following is a valid m1 xdoc (correct me if I am > wrong!) > {code:xml} > <document> > <properties> > <title>Dummy Page</title> > </properties> > <head> > <meta name="keyword" content="maven"/> > </head> > <body> > <section name="blabla"> > ... > </section> > </body> > </document> > {code} > and produces the following html > {code:xml} > ... > <div id="contentBox"> > <head> > <meta name="keyword" content="maven"></meta> > </head> > <a name="blabla"></a><div class="section"><h2>blabla</h2> > ... > {code} -- 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