You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "lacton (JIRA)" <ji...@codehaus.org> on 2007/05/13 17:06:12 UTC

[jira] Created: (MSITE-230) Spurious in generated section

Spurious <?xml version="1.0" encoding="UTF-8"?> in generated <head> section
---------------------------------------------------------------------------

                 Key: MSITE-230
                 URL: http://jira.codehaus.org/browse/MSITE-230
             Project: Maven 2.x Site Plugin
          Issue Type: Bug
    Affects Versions: 2.0-beta-6
         Environment: Linux, java version "1.4.2-02"
            Reporter: lacton
            Priority: Minor


The string "<?xml version="1.0" encoding="UTF-8"?>" appears before each element of the project.body.head tag of the site.xml file. Example follows.

<-- pom.xml -->

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <groupId>org.hello</groupId>
    <artifactId>hello</artifactId>
    <version>1.0</version>
    <name>Hello</name>
</project>

<-- src/site/site.xml -->

<?xml version="1.0" encoding="ISO-8859-1"?>
<project name="Hello">
    <body>
        <head>
            <link href="favicon.ico" rel="SHORTCUT ICON" />
        </head>
        <menu ref="reports" />
    </body>
</project>

<-- index.html generated by 'mvn site' -->

<html>
  <head>
    <title>Hello - About</title>
...
    <link rel="stylesheet" href="./css/print.css" type="text/css" media="print" />
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />

    <?xml version="1.0" encoding="UTF-8"?>
    <link href="favicon.ico" rel="SHORTCUT ICON"></link>

   </head>
  <body class="composite">
...

-- 
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-150) Spurious in generated section

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

Lukas Theussl commented on DOXIA-150:
-------------------------------------

Just for reference, the <head> element *is* allowed in site.xml, see http://www.nabble.com/head-element-in-site.xml--tf4396612s177.html

> Spurious <?xml version="1.0" encoding="UTF-8"?> in generated <head> section
> ---------------------------------------------------------------------------
>
>                 Key: DOXIA-150
>                 URL: http://jira.codehaus.org/browse/DOXIA-150
>             Project: Maven Doxia
>          Issue Type: Bug
>    Affects Versions: 1.0-alpha-8
>         Environment: Linux, java version "1.4.2-02"
>            Reporter: lacton
>            Assignee: Vincent Siveton
>            Priority: Minor
>             Fix For: 1.0-alpha-9
>
>
> The string "<?xml version="1.0" encoding="UTF-8"?>" appears before each element of the project.body.head tag of the site.xml file. Example follows.
> <-- pom.xml -->
> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
>     <modelVersion>4.0.0</modelVersion>
>     <groupId>org.hello</groupId>
>     <artifactId>hello</artifactId>
>     <version>1.0</version>
>     <name>Hello</name>
> </project>
> <-- src/site/site.xml -->
> <?xml version="1.0" encoding="ISO-8859-1"?>
> <project name="Hello">
>     <body>
>         <head>
>             <link href="favicon.ico" rel="SHORTCUT ICON" />
>         </head>
>         <menu ref="reports" />
>     </body>
> </project>
> <-- index.html generated by 'mvn site' -->
> <html>
>   <head>
>     <title>Hello - About</title>
> ...
>     <link rel="stylesheet" href="./css/print.css" type="text/css" media="print" />
>     <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
>     <?xml version="1.0" encoding="UTF-8"?>
>     <link href="favicon.ico" rel="SHORTCUT ICON"></link>
>    </head>
>   <body class="composite">
> ...

-- 
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-230) Spurious in generated section

Posted by "lacton (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MSITE-230?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_100910 ] 

lacton commented on MSITE-230:
------------------------------

Lukas,

Thank you for your comment.  What is the right place to put a favicon tag (i.e., <link href="favicon.ico" rel="SHORTCUT ICON" />) in that case?

Cheers.

> Spurious <?xml version="1.0" encoding="UTF-8"?> in generated <head> section
> ---------------------------------------------------------------------------
>
>                 Key: MSITE-230
>                 URL: http://jira.codehaus.org/browse/MSITE-230
>             Project: Maven 2.x Site Plugin
>          Issue Type: Bug
>    Affects Versions: 2.0-beta-6
>         Environment: Linux, java version "1.4.2-02"
>            Reporter: lacton
>            Priority: Minor
>
> The string "<?xml version="1.0" encoding="UTF-8"?>" appears before each element of the project.body.head tag of the site.xml file. Example follows.
> <-- pom.xml -->
> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
>     <modelVersion>4.0.0</modelVersion>
>     <groupId>org.hello</groupId>
>     <artifactId>hello</artifactId>
>     <version>1.0</version>
>     <name>Hello</name>
> </project>
> <-- src/site/site.xml -->
> <?xml version="1.0" encoding="ISO-8859-1"?>
> <project name="Hello">
>     <body>
>         <head>
>             <link href="favicon.ico" rel="SHORTCUT ICON" />
>         </head>
>         <menu ref="reports" />
>     </body>
> </project>
> <-- index.html generated by 'mvn site' -->
> <html>
>   <head>
>     <title>Hello - About</title>
> ...
>     <link rel="stylesheet" href="./css/print.css" type="text/css" media="print" />
>     <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
>     <?xml version="1.0" encoding="UTF-8"?>
>     <link href="favicon.ico" rel="SHORTCUT ICON"></link>
>    </head>
>   <body class="composite">
> ...

-- 
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-230) Spurious in generated section

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

Lukas Theussl commented on MSITE-230:
-------------------------------------

A <head> element is not allowed in site.xml.

> Spurious <?xml version="1.0" encoding="UTF-8"?> in generated <head> section
> ---------------------------------------------------------------------------
>
>                 Key: MSITE-230
>                 URL: http://jira.codehaus.org/browse/MSITE-230
>             Project: Maven 2.x Site Plugin
>          Issue Type: Bug
>    Affects Versions: 2.0-beta-6
>         Environment: Linux, java version "1.4.2-02"
>            Reporter: lacton
>            Priority: Minor
>
> The string "<?xml version="1.0" encoding="UTF-8"?>" appears before each element of the project.body.head tag of the site.xml file. Example follows.
> <-- pom.xml -->
> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
>     <modelVersion>4.0.0</modelVersion>
>     <groupId>org.hello</groupId>
>     <artifactId>hello</artifactId>
>     <version>1.0</version>
>     <name>Hello</name>
> </project>
> <-- src/site/site.xml -->
> <?xml version="1.0" encoding="ISO-8859-1"?>
> <project name="Hello">
>     <body>
>         <head>
>             <link href="favicon.ico" rel="SHORTCUT ICON" />
>         </head>
>         <menu ref="reports" />
>     </body>
> </project>
> <-- index.html generated by 'mvn site' -->
> <html>
>   <head>
>     <title>Hello - About</title>
> ...
>     <link rel="stylesheet" href="./css/print.css" type="text/css" media="print" />
>     <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
>     <?xml version="1.0" encoding="UTF-8"?>
>     <link href="favicon.ico" rel="SHORTCUT ICON"></link>
>    </head>
>   <body class="composite">
> ...

-- 
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-150) Spurious in generated section

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

Vincent Siveton closed DOXIA-150.
---------------------------------

         Assignee: Vincent Siveton
       Resolution: Fixed
    Fix Version/s: 1.0-alpha-9

Added a small workaround to handle the non-desired behaviour in p-u.

> Spurious <?xml version="1.0" encoding="UTF-8"?> in generated <head> section
> ---------------------------------------------------------------------------
>
>                 Key: DOXIA-150
>                 URL: http://jira.codehaus.org/browse/DOXIA-150
>             Project: Maven Doxia
>          Issue Type: Bug
>    Affects Versions: 1.0-alpha-8
>         Environment: Linux, java version "1.4.2-02"
>            Reporter: lacton
>            Assignee: Vincent Siveton
>            Priority: Minor
>             Fix For: 1.0-alpha-9
>
>
> The string "<?xml version="1.0" encoding="UTF-8"?>" appears before each element of the project.body.head tag of the site.xml file. Example follows.
> <-- pom.xml -->
> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
>     <modelVersion>4.0.0</modelVersion>
>     <groupId>org.hello</groupId>
>     <artifactId>hello</artifactId>
>     <version>1.0</version>
>     <name>Hello</name>
> </project>
> <-- src/site/site.xml -->
> <?xml version="1.0" encoding="ISO-8859-1"?>
> <project name="Hello">
>     <body>
>         <head>
>             <link href="favicon.ico" rel="SHORTCUT ICON" />
>         </head>
>         <menu ref="reports" />
>     </body>
> </project>
> <-- index.html generated by 'mvn site' -->
> <html>
>   <head>
>     <title>Hello - About</title>
> ...
>     <link rel="stylesheet" href="./css/print.css" type="text/css" media="print" />
>     <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
>     <?xml version="1.0" encoding="UTF-8"?>
>     <link href="favicon.ico" rel="SHORTCUT ICON"></link>
>    </head>
>   <body class="composite">
> ...

-- 
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-230) Spurious in generated section

Posted by "lacton (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MSITE-230?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_100916 ] 

lacton commented on MSITE-230:
------------------------------

I see.  Does it mean that this issue should not be for the Site Plugin but for Doxia?

> Spurious <?xml version="1.0" encoding="UTF-8"?> in generated <head> section
> ---------------------------------------------------------------------------
>
>                 Key: MSITE-230
>                 URL: http://jira.codehaus.org/browse/MSITE-230
>             Project: Maven 2.x Site Plugin
>          Issue Type: Bug
>    Affects Versions: 2.0-beta-6
>         Environment: Linux, java version "1.4.2-02"
>            Reporter: lacton
>            Priority: Minor
>
> The string "<?xml version="1.0" encoding="UTF-8"?>" appears before each element of the project.body.head tag of the site.xml file. Example follows.
> <-- pom.xml -->
> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
>     <modelVersion>4.0.0</modelVersion>
>     <groupId>org.hello</groupId>
>     <artifactId>hello</artifactId>
>     <version>1.0</version>
>     <name>Hello</name>
> </project>
> <-- src/site/site.xml -->
> <?xml version="1.0" encoding="ISO-8859-1"?>
> <project name="Hello">
>     <body>
>         <head>
>             <link href="favicon.ico" rel="SHORTCUT ICON" />
>         </head>
>         <menu ref="reports" />
>     </body>
> </project>
> <-- index.html generated by 'mvn site' -->
> <html>
>   <head>
>     <title>Hello - About</title>
> ...
>     <link rel="stylesheet" href="./css/print.css" type="text/css" media="print" />
>     <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
>     <?xml version="1.0" encoding="UTF-8"?>
>     <link href="favicon.ico" rel="SHORTCUT ICON"></link>
>    </head>
>   <body class="composite">
> ...

-- 
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-230) Spurious in generated section

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

Lukas Theussl commented on MSITE-230:
-------------------------------------

In m1 you could add <head> elements to your xdoc sources, (see eg http://maven.apache.org/maven-1.x/using/site.html#Creating_a_new_Document), but that doesn't seem to work in m2. That's probably a doxia bug or missing feature, need to check. In any case, apt doesn't know a head element.

> Spurious <?xml version="1.0" encoding="UTF-8"?> in generated <head> section
> ---------------------------------------------------------------------------
>
>                 Key: MSITE-230
>                 URL: http://jira.codehaus.org/browse/MSITE-230
>             Project: Maven 2.x Site Plugin
>          Issue Type: Bug
>    Affects Versions: 2.0-beta-6
>         Environment: Linux, java version "1.4.2-02"
>            Reporter: lacton
>            Priority: Minor
>
> The string "<?xml version="1.0" encoding="UTF-8"?>" appears before each element of the project.body.head tag of the site.xml file. Example follows.
> <-- pom.xml -->
> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
>     <modelVersion>4.0.0</modelVersion>
>     <groupId>org.hello</groupId>
>     <artifactId>hello</artifactId>
>     <version>1.0</version>
>     <name>Hello</name>
> </project>
> <-- src/site/site.xml -->
> <?xml version="1.0" encoding="ISO-8859-1"?>
> <project name="Hello">
>     <body>
>         <head>
>             <link href="favicon.ico" rel="SHORTCUT ICON" />
>         </head>
>         <menu ref="reports" />
>     </body>
> </project>
> <-- index.html generated by 'mvn site' -->
> <html>
>   <head>
>     <title>Hello - About</title>
> ...
>     <link rel="stylesheet" href="./css/print.css" type="text/css" media="print" />
>     <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
>     <?xml version="1.0" encoding="UTF-8"?>
>     <link href="favicon.ico" rel="SHORTCUT ICON"></link>
>    </head>
>   <body class="composite">
> ...

-- 
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] Moved: (DOXIA-150) Spurious in generated section

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

Vincent Siveton moved MSITE-230 to DOXIA-150:
---------------------------------------------

    Affects Version/s:     (was: 2.0-beta-6)
                       1.0-alpha-8
                  Key: DOXIA-150  (was: MSITE-230)
              Project: Maven Doxia  (was: Maven 2.x Site Plugin)

> Spurious <?xml version="1.0" encoding="UTF-8"?> in generated <head> section
> ---------------------------------------------------------------------------
>
>                 Key: DOXIA-150
>                 URL: http://jira.codehaus.org/browse/DOXIA-150
>             Project: Maven Doxia
>          Issue Type: Bug
>    Affects Versions: 1.0-alpha-8
>         Environment: Linux, java version "1.4.2-02"
>            Reporter: lacton
>            Priority: Minor
>
> The string "<?xml version="1.0" encoding="UTF-8"?>" appears before each element of the project.body.head tag of the site.xml file. Example follows.
> <-- pom.xml -->
> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
>     <modelVersion>4.0.0</modelVersion>
>     <groupId>org.hello</groupId>
>     <artifactId>hello</artifactId>
>     <version>1.0</version>
>     <name>Hello</name>
> </project>
> <-- src/site/site.xml -->
> <?xml version="1.0" encoding="ISO-8859-1"?>
> <project name="Hello">
>     <body>
>         <head>
>             <link href="favicon.ico" rel="SHORTCUT ICON" />
>         </head>
>         <menu ref="reports" />
>     </body>
> </project>
> <-- index.html generated by 'mvn site' -->
> <html>
>   <head>
>     <title>Hello - About</title>
> ...
>     <link rel="stylesheet" href="./css/print.css" type="text/css" media="print" />
>     <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
>     <?xml version="1.0" encoding="UTF-8"?>
>     <link href="favicon.ico" rel="SHORTCUT ICON"></link>
>    </head>
>   <body class="composite">
> ...

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