[Fontconfig-bugs] [Bug 105818] New: Broken validation of xml conf files using fonts.dtd

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Fri Mar 30 13:01:05 UTC 2018


https://bugs.freedesktop.org/show_bug.cgi?id=105818

            Bug ID: 105818
           Summary: Broken validation of xml conf files using fonts.dtd
           Product: fontconfig
           Version: unspecified
          Hardware: x86-64 (AMD64)
                OS: Linux (All)
            Status: NEW
          Severity: normal
          Priority: medium
         Component: conf
          Assignee: fontconfig-bugs at lists.freedesktop.org
          Reporter: roger.berny at sfr.fr
        QA Contact: freedesktop at behdad.org

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 https://bbs.archlinux.org/viewtopic.php?id=235643

For other details.

The fonts.dtd files misses the new lines in the conf files:

        <its:rules xmlns:its="http://www.w3.org/2005/11/its" 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.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/fontconfig-bugs/attachments/20180330/bd78ca5b/attachment.html>


More information about the Fontconfig-bugs mailing list