tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 51028] Build fails if Saxon 9 is on Ant's classpath
Date Wed, 06 Apr 2011 13:57:31 GMT

--- Comment #7 from Michael Osipov <> 2011-04-06 09:57:27 EDT ---
(In reply to comment #6)
> The relevant part of the log file says:
>      [xslt] Processing E:\Projekte\tomcat-trunk\webapps\docs\changelog.xml to
> E:\Projekte\tomcat-trunk\output\build\webapps\docs\changelog.html
>      [xslt] E:\Projekte\tomcat-trunk\webapps\docs\tomcat-docs.xsl:470: Fatal
> Error! Illegal HTML character: decimal 150
> Line 470 of tomcat-docs.xsl is
>   <xsl:template match="changelog/fix">
>     <tr>
>       <xsl:variable name="src"><xsl:value-of
> select="$relative-path"/>/images/fix.gif</xsl:variable>
>       <td><img alt="fix" class="icon" src="{$src}"/></td>
>       <td><xsl:apply-templates/></td> <!-- 470 -->
>     </tr>
>   </xsl:template>
> The character 150 is clearly not present in the XSL file.
> The Saxon error message is somewhat misleading, as the invalid character seems
> to be in changelog.xml at line 1488:
>         <bug>49428</bug>: Re-implement the fix for bug <bug>49428</bug>
> Perhaps you can try temporarily editting that out, and see if that makes Saxon
> happy.


I removed the suspicious ref and it worked. I started digging and realized that
the document is really broken. In contrast to the built-in Xalan Saxon is not
lenient and strictly follows the specs.
The change was made by Konstantin, he doesn't seem to be encoding-savvy. If you
check the changelog.xml's encoding, you'll see UTF-8 is set in the XML prolog.
The entity ref '&#150;' (0x96, char 'en dash')
( does only exist in Windows
1252 ( but translated
to Unicode, this is a contol char which is forbidden in XML.
To make this work, you have to reference a valid Unicode char. In this case it
would be '&#8211;' (U+2013) see

I changed that and 'ant release' ran perfectly. I guess this is a really simple
fix in SVN and the build should work on both XSLT processors.

Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message