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

        

Reply via email to