Issue Details (XML | Word | Printable)

Key: DOXIA-129
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Lukas Theussl
Reporter: Vincent Siveton
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Maven Doxia

Allow correctly head element in xdoc

Created: 11/Jul/07 07:26 AM   Updated: 08/Apr/09 02:19 AM   Resolved: 08/Apr/09 02:19 AM
Return to search
Component/s: Module - Xdoc
Affects Version/s: 1.0-alpha-9
Fix Version/s: 1.1.1

Time Tracking:
Not Specified

Issue Links:
Related
 
Supercedes
 
dependent
 


 Description  « Hide

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!)

<document>
  <properties>
    <title>Dummy Page</title>
  </properties>
  <head>
    <meta name="keyword" content="maven"/>
  </head>
  <body>
    <section name="blabla">
...
    </section>
  </body>
</document>

and produces the following html

...
      <div id="contentBox">

      <head>
        <meta name="keyword" content="maven"></meta>
      </head>

<a name="blabla"></a><div class="section"><h2>blabla</h2>
...


Vincent Siveton made changes - 11/Jul/07 07:32 AM
Field Original Value New Value
Link This issue relates to DOXIA-123 [ DOXIA-123 ]
Lukas Theussl made changes - 11/Jul/07 04:23 PM
Link This issue is depended upon by MSITE-194 [ MSITE-194 ]
Lukas Theussl added a comment - 11/Jul/07 04:23 PM

This is actually a dupe of MSITE-194.


Lukas Theussl made changes - 12/Jul/07 02:44 AM
Fix Version/s 1.0 [ 12362 ]
Fix Version/s 1.0-beta-1 [ 13617 ]
Dennis Lundberg added a comment - 28/Jul/07 05:40 PM

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


Dennis Lundberg made changes - 02/Sep/07 09:38 AM
Link This issue relates to MSITE-230 [ MSITE-230 ]
Lukas Theussl made changes - 07/Feb/08 08:06 AM
Link This issue supercedes DOXIA-104 [ DOXIA-104 ]
Lukas Theussl made changes - 15/Feb/08 03:05 AM
Fix Version/s 1.0-beta-1 [ 13617 ]
Fix Version/s 1.0-beta-2 [ 14082 ]
Lukas Theussl made changes - 08/Apr/09 02:09 AM
Link This issue is depended upon by DOXIASITETOOLS-19 [ DOXIASITETOOLS-19 ]
Lukas Theussl added a comment - 08/Apr/09 02:19 AM

Fixed in r763127. The meta tags are emitted as 'unknown' Sink events that are picked up by the XhtmlBaseSink.
In order to profit from this in the site plugin (MSITE-194), we still need to fix DOXIASITETOOLS-19.


Lukas Theussl made changes - 08/Apr/09 02:19 AM
Assignee Lukas Theussl [ lukas ]
Resolution Fixed [ 1 ]
Fix Version/s 1.2 [ 14082 ]
Fix Version/s 1.1.1 [ 15073 ]
Status Open [ 1 ] Closed [ 6 ]