<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - Fix <alias> inside <match>"
href="https://bugs.freedesktop.org/show_bug.cgi?id=59438#c4">Comment # 4</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW --- - Fix <alias> inside <match>"
href="https://bugs.freedesktop.org/show_bug.cgi?id=59438">bug 59438</a>
from <span class="vcard"><a class="email" href="mailto:akira@tagoh.org" title="Akira TAGOH <akira@tagoh.org>"> <span class="fn">Akira TAGOH</span></a>
</span></b>
<pre>Okay, here is another proposal:
<a href="http://cgit.freedesktop.org/~tagoh/fontconfig/commit/?h=bz59438-2">http://cgit.freedesktop.org/~tagoh/fontconfig/commit/?h=bz59438-2</a>
the test case in <a href="show_bug.cgi?id=59438#c1">comment#1</a> in question would introduces the warning in this
case and no more make the empty match pattern:
$ FC_DEBUG=1028 ./fc-match/fc-match
...
Fontconfig warning: "/home/tagoh/.config/fontconfig/conf.d/000-bz59438.conf",
line 7: No <test> nor <edit> elements in <match>
...
Loading config file
/home/tagoh/.config/fontconfig/conf.d/000-bz59438.conf
Add Subst match
pattern any family Equal(ignore blanks) "sans-serif"
edit
Edit family AppendLast "foo";
...
This doesn't prevent <alias> inside <match> exactly though.
(In reply to <a href="show_bug.cgi?id=59438#c3">comment #3</a>)
<span class="quote">> Or we can make it valid to have alias in match. Otherwise, lets just close
> this. Having a way to enable DTD verification (envvar and cmdline arg to
> fc-* tools) in libxml is useful.</span >
Sure. but I suppose that feature isn't available in expat. it may be a good
opportunity to switch the default parser to libxml though, as we had <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - configs silently ignored if libxml2 doesn't support SAX1 interface"
href="show_bug.cgi?id=34266">Bug#34266</a>
in bz, we need to polish a bit for libxml support perhaps. there seems some
distros enabling it by default, it's not used in Fedora. so I'm not sure how
better it works on. maybe I should try...</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>