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

Fml processing can't handle comments or blank lines before the <?xml version 1.0> tag

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Won't Fix
  • Affects Version/s: 2.0-beta-5
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None

Description

Introducing the apache license at the top of the file causes an exception, even having a blank line will cause the same problem. In order to make this work, I had to do this:

<?xml version="1.0"?>
<!--

  • Licensed to the Apache Software Foundation (ASF) under one
  • or more contributor license agreements. See the NOTICE file
  • distributed with this work for additional information
  • regarding copyright ownership. The ASF licenses this file
  • to you under the Apache License, Version 2.0 (the
  • "License"); you may not use this file except in compliance
  • with the License. You may obtain a copy of the License at
    *
  • http://www.apache.org/licenses/LICENSE-2.0
    *
  • Unless required by applicable law or agreed to in writing,
  • software distributed under the License is distributed on an
  • "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  • KIND, either express or implied. See the License for the
  • specific language governing permissions and limitations
  • under the License.
    *
    -->

Issue Links

is related to

Bug - A problem which impairs or prevents the functions of the product. MNGSITE-4 broken links on http://maven.apache.org/plugins

  • 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
Dennis Lundberg added a comment - 02/Sep/07 9:20 AM

According to the xml spec http://www.w3.org/TR/2006/REC-xml-20060816/#sec-prolog-dtd

"The document type declaration MUST appear before the first element in the document."

So adding the license before it makes it an invalid xml document.

I couldn't find any info on whitespace before the document type declaration.

Show
Dennis Lundberg added a comment - 02/Sep/07 9:20 AM According to the xml spec http://www.w3.org/TR/2006/REC-xml-20060816/#sec-prolog-dtd "The document type declaration MUST appear before the first element in the document." So adding the license before it makes it an invalid xml document. I couldn't find any info on whitespace before the document type declaration.
Hide
Permalink
Herve Boutemy added a comment - 01/Dec/07 10:49 AM

I confirm Dennis comments: if used, <?xml ... ?> MUST be the first characters, that is requested by the XML spec.
FYI, this fact is used to detect encoding: see http://www.w3.org/TR/2004/REC-xml-20040204/#sec-guessing

Show
Herve Boutemy added a comment - 01/Dec/07 10:49 AM I confirm Dennis comments: if used, <?xml ... ?> MUST be the first characters, that is requested by the XML spec. FYI, this fact is used to detect encoding: see http://www.w3.org/TR/2004/REC-xml-20040204/#sec-guessing

People

  • Assignee:
    Herve Boutemy
    Reporter:
    Brian Fox
Vote (0)
Watch (0)

Dates

  • Created:
    18/Nov/06 4:10 PM
    Updated:
    01/Dec/07 10:49 AM
    Resolved:
    01/Dec/07 10:49 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.