[ http://jira.codehaus.org/browse/MAVEN-1679?page=all ]

Arnaud Heritier updated MAVEN-1679:
-----------------------------------

    Fix Version:     (was: 1.1-beta-3)

> maven 1.1-beta-1 chokes on XML Entities for non-US characters in project.xml
> ----------------------------------------------------------------------------
>
>          Key: MAVEN-1679
>          URL: http://jira.codehaus.org/browse/MAVEN-1679
>      Project: Maven
>         Type: Bug

>   Components: model
>     Versions: 1.1-beta-1
>     Reporter: Eirik Maus

>
>
> To make project.xml readable across operating systems and parsers (even when 
> turned into html by the site plugin), we have used entities for non-US 
> characters in project xml.   The XML parser used in maven 1.1 chokes on the 
> use of these entities (but not on the entity definition). This is very 
> unfortunate, as using entities for abbreviations and symbols is perfectly 
> legal Xml. 
> Example: won't work with 1.1:
> <?xml version="1.0" encoding="ISO-8859-1"?>
> <!DOCTYPE project [
>     <!ENTITY OSlash "&#248;">
>     <!ENTITY CapitalOSlash "&#216;">
> ]>
> <project>
>     <pomVersion>3</pomVersion>
>  ...
>     <developers>
>         <developer>
>             <name>Marit Finne J&OSlash;rgensen</name>
>             <id>mfj</id>
>         </developer>
>     </developers>
> ....
> </project>
> Example: fix for 1.1, with cross-system compatibility issues. 
> <?xml version="1.0" encoding="ISO-8859-1"?>
> <!DOCTYPE project [
>     <!ENTITY OSlash "&#248;">
>     <!ENTITY CapitalOSlash "&#216;">
> ]>
> <project>
>     <pomVersion>3</pomVersion>
>  ...
>     <developers>
>         <developer>
>             <name>Marit Finne Jørgensen</name>
>             <id>mfj</id>
>         </developer>
>     </developers>
> ....
> </project>
> The XML parser chokes on the Usage of the XML Entity, inside 'Jørgensen', not 
> on the definition.  

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