jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • Maven 2.x and 3.x Site Plugin
  • MSITE-441

<head> generated at bad place in html (xdoc format)

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Cannot Reproduce
  • Affects Version/s: 2.1
  • Fix Version/s: None
  • Component/s: doxia integration
  • Labels:
    None
  • Environment:
    Ubuntu, maven 2.2.1, Java 6

Description

Here is a simple test.xml with a <head> tag.

<?xml version="1.0" encoding="ISO-8859-1"?>
<document xmlns="http://maven.apache.org/XDOC/2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/XDOC/2.0 http://maven.apache.org/xsd/xdoc-2.0.xsd">

<head>
<link href="css/mysite.css" type="text/css" media="print" />
</head>

<body>
<section name="Test">
Hello
</section>
</body>
</document>

In the generated html :

<div id="bodyColumn">
<div id="contentBox">
<head><link href="css/mysite.css" type="text/css" media="print"></head> <= bad position
<div class="section"><h2><a name="Test"></a>Test</h2>

  • Options
    • Sort By Name
    • Sort By Date
    • Ascending
    • Descending
    • Download All

Attachments

  1. Hide
    Zip Archive
    msite-441.zip
    23/Dec/09 12:58 AM
    2 kB
    Lukas Theussl
    1. XML File
      msite-441/pom.xml 0.6 kB
    2. XML File
      msite-441/src/site/site.xml 0.2 kB
    3. XML File
      msite-441/src/site/xdoc/testHead.xml 0.4 kB
    Download Zip
    Show
    Zip Archive
    msite-441.zip
    23/Dec/09 12:58 AM
    2 kB
    Lukas Theussl

Issue Links

is related to

Bug - A problem which impairs or prevents the functions of the product. MSITE-194 xdoc's <head/> gets rendered in the HTML body, not in head

  • Major - Major loss of function.
  • Closed - The issue is considered finished, the resolution is correct. Issues which are not closed can be reopened.

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Lukas Theussl added a comment - 23/Dec/09 12:58 AM

I cannot reproduce that, see attached test project. Are you sure you are using site plugin 2.1? Your xdoc above should actually give a validation error because a <title> is required within <head>.

Show
Lukas Theussl added a comment - 23/Dec/09 12:58 AM I cannot reproduce that, see attached test project. Are you sure you are using site plugin 2.1? Your xdoc above should actually give a validation error because a <title> is required within <head>.
Hide
Permalink
Michenaud Laurent added a comment - 23/Dec/09 3:16 AM

Thanks a lot.

My problem was that I declared the site plugin with it version in
the reporting part instead of the build part in pom.xml.

I have another problem. Respecting the xsd, i have to declare
twice the title (in properties and in head) and it generates a warning.

<properties>
<title>My title</title>
<author email="*****">Michel</author>
</properties>

<head>
<title>My title</title>
<link href="css/mycss.css" type="text/css" media="screen"/>
</head>

Show
Michenaud Laurent added a comment - 23/Dec/09 3:16 AM Thanks a lot. My problem was that I declared the site plugin with it version in the reporting part instead of the build part in pom.xml. I have another problem. Respecting the xsd, i have to declare twice the title (in properties and in head) and it generates a warning. <properties> <title>My title</title> <author email="*****">Michel</author> </properties> <head> <title>My title</title> <link href="css/mycss.css" type="text/css" media="screen"/> </head>
Hide
Permalink
Lukas Theussl added a comment - 23/Dec/09 1:22 PM

True it's confusing, but the warning is harmless, it only tells you which title is being used actually.

I'd recommend to not use both <properties> and <head>, just put the author information into a <meta> tag and remove the <properties>.

Show
Lukas Theussl added a comment - 23/Dec/09 1:22 PM True it's confusing, but the warning is harmless, it only tells you which title is being used actually. I'd recommend to not use both <properties> and <head>, just put the author information into a <meta> tag and remove the <properties>.

People

  • Assignee:
    Lukas Theussl
    Reporter:
    Michenaud Laurent
Vote (0)
Watch (1)

Dates

  • Created:
    22/Dec/09 10:35 AM
    Updated:
    23/Dec/09 1:22 PM
    Resolved:
    23/Dec/09 12:59 AM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.