You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Michenaud Laurent (JIRA)" <ji...@codehaus.org> on 2009/12/22 17:36:55 UTC

[jira] Created: (MSITE-441) generated at bad place in html (xdoc format)

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

                 Key: MSITE-441
                 URL: http://jira.codehaus.org/browse/MSITE-441
             Project: Maven 2.x Site Plugin
          Issue Type: Bug
          Components: doxia integration
    Affects Versions: 2.1
         Environment: Ubuntu, maven 2.2.1, Java 6
            Reporter: Michenaud Laurent


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>


-- 
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: (MSITE-441) generated at bad place in html (xdoc format)

Posted by "Lukas Theussl (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MSITE-441?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=203999#action_203999 ] 

Lukas Theussl commented on MSITE-441:
-------------------------------------

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>.

> <head> generated at bad place in html (xdoc format)
> ---------------------------------------------------
>
>                 Key: MSITE-441
>                 URL: http://jira.codehaus.org/browse/MSITE-441
>             Project: Maven 2.x Site Plugin
>          Issue Type: Bug
>          Components: doxia integration
>    Affects Versions: 2.1
>         Environment: Ubuntu, maven 2.2.1, Java 6
>            Reporter: Michenaud Laurent
>            Assignee: Lukas Theussl
>         Attachments: msite-441.zip
>
>
> 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>

-- 
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: (MSITE-441) generated at bad place in html (xdoc format)

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

Lukas Theussl closed MSITE-441.
-------------------------------

    Resolution: Cannot Reproduce
      Assignee: Lukas Theussl

> <head> generated at bad place in html (xdoc format)
> ---------------------------------------------------
>
>                 Key: MSITE-441
>                 URL: http://jira.codehaus.org/browse/MSITE-441
>             Project: Maven 2.x Site Plugin
>          Issue Type: Bug
>          Components: doxia integration
>    Affects Versions: 2.1
>         Environment: Ubuntu, maven 2.2.1, Java 6
>            Reporter: Michenaud Laurent
>            Assignee: Lukas Theussl
>         Attachments: msite-441.zip
>
>
> 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>

-- 
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] Updated: (MSITE-441) generated at bad place in html (xdoc format)

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

Lukas Theussl updated MSITE-441:
--------------------------------

    Attachment: msite-441.zip

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>.

> <head> generated at bad place in html (xdoc format)
> ---------------------------------------------------
>
>                 Key: MSITE-441
>                 URL: http://jira.codehaus.org/browse/MSITE-441
>             Project: Maven 2.x Site Plugin
>          Issue Type: Bug
>          Components: doxia integration
>    Affects Versions: 2.1
>         Environment: Ubuntu, maven 2.2.1, Java 6
>            Reporter: Michenaud Laurent
>         Attachments: msite-441.zip
>
>
> 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>

-- 
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: (MSITE-441) generated at bad place in html (xdoc format)

Posted by "Michenaud Laurent (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MSITE-441?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=203922#action_203922 ] 

Michenaud Laurent commented on MSITE-441:
-----------------------------------------

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>

> <head> generated at bad place in html (xdoc format)
> ---------------------------------------------------
>
>                 Key: MSITE-441
>                 URL: http://jira.codehaus.org/browse/MSITE-441
>             Project: Maven 2.x Site Plugin
>          Issue Type: Bug
>          Components: doxia integration
>    Affects Versions: 2.1
>         Environment: Ubuntu, maven 2.2.1, Java 6
>            Reporter: Michenaud Laurent
>            Assignee: Lukas Theussl
>         Attachments: msite-441.zip
>
>
> 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>

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