<html>
<head>
<base href="https://bugs.freedesktop.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - Broken validation of xml conf files using fonts.dtd"
href="https://bugs.freedesktop.org/show_bug.cgi?id=105818">105818</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Broken validation of xml conf files using fonts.dtd
</td>
</tr>
<tr>
<th>Product</th>
<td>fontconfig
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>x86-64 (AMD64)
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux (All)
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Component</th>
<td>conf
</td>
</tr>
<tr>
<th>Assignee</th>
<td>fontconfig-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>roger.berny@sfr.fr
</td>
</tr>
<tr>
<th>QA Contact</th>
<td>freedesktop@behdad.org
</td>
</tr></table>
<p>
<div>
<pre>Since fontconfig 2.13.0 release, the validation of the conf files is broken:
xmllint --noout --dtdvalid fonts.dtd fonts.conf
fonts.conf:4: element fontconfig: validity error : Element fontconfig content
does not follow the DTD, expecting (dir | cache | cachedir | include | config |
selectfont | match | alias)*, got (its:rules description dir dir dir dir match
match match include cachedir cachedir cachedir config )
fonts.conf:5: element rules: validity error : No declaration for element rules
fonts.conf:5: element rules: validity error : No declaration for attribute
version of element rules
fonts.conf:5: element rules: validity error : No declaration for attribute
xmlns:its of element rules
fonts.conf:6: element translateRule: validity error : No declaration for
element translateRule
fonts.conf:6: element translateRule: validity error : No declaration for
attribute translate of element translateRule
fonts.conf:6: element translateRule: validity error : No declaration for
attribute selector of element translateRule
fonts.conf:9: element description: validity error : No declaration for element
description
Document fonts.conf does not validate against fonts.dtd
This seems to prevent some applis fom starting.
See <a href="https://bbs.archlinux.org/viewtopic.php?id=235643">https://bbs.archlinux.org/viewtopic.php?id=235643</a>
For other details.
The fonts.dtd files misses the new lines in the conf files:
<its:rules xmlns:its="<a href="http://www.w3.org/2005/11/its">http://www.w3.org/2005/11/its</a>" version="1.0">
<its:translateRule translate="no"
selector="/fontconfig/*[not(self::description)]"/>
</its:rules>
<description>Default configuration file</description>
The dtd file needs some update to take this into account.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>