You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Vincent Siveton (JIRA)" <ji...@codehaus.org> on 2007/07/11 14:26:13 UTC

[jira] Created: (DOXIA-129) Allow correctly head element in xdoc

Allow correctly head element in xdoc
------------------------------------

                 Key: DOXIA-129
                 URL: http://jira.codehaus.org/browse/DOXIA-129
             Project: doxia
          Issue Type: Bug
          Components: Module - Xdoc
    Affects Versions: 1.0-alpha-9
            Reporter: Vincent Siveton
             Fix For: 1.0


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

        

[jira] Closed: (DOXIA-129) Allow correctly head element in xdoc

Posted by "Lukas Theussl (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/DOXIA-129?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Lukas Theussl closed DOXIA-129.
-------------------------------

         Assignee: Lukas Theussl
       Resolution: Fixed
    Fix Version/s:     (was: 1.2)
                   1.1.1

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.

> 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
>            Assignee: Lukas Theussl
>             Fix For: 1.1.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

        

[jira] Commented: (DOXIA-129) Allow correctly head element in xdoc

Posted by "Dennis Lundberg (JIRA)" <ji...@codehaus.org>.
    [ 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

        

[jira] Commented: (DOXIA-129) Allow correctly head element in xdoc

Posted by "Data Nucleus (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/DOXIA-129?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=267061#action_267061 ] 

Data Nucleus commented on DOXIA-129:
------------------------------------

Anyone know how do I access such <head> meta elements from a Velocity file (site.vm) ? got an example?

> 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
>            Assignee: Lukas Theussl
>             Fix For: 1.1.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