[systemd-devel] [PATCH 0/2] Using XML entities for paths in manpages

Filipe Brandenburger filbranden at google.com
Wed May 27 07:50:59 PDT 2015


Hi,

On Wed, May 27, 2015 at 6:04 AM, Lennart Poettering
<lennart at poettering.net> wrote:
> Hmm, any chance we can somehow define those entities without having to
> add
>
>  <!ENTITY % entities SYSTEM "custom-entities.ent" >
>  %entities;
>  ]>
>
> To each file? Can't we tell xsltproc about this via some command line
> switch or so?

I don't think that's possible, in part I believe because XML wants the
documents to be completely described by their doctype and having
external "magic" includes would break that promise.

In particular, two man pages were using this exact same snippet before
my patch: systemd.generator.xml and systemd.unit.xml (though the
latter didn't seem to use any of the named entities at that point...)

Cheers,
Filipe


More information about the systemd-devel mailing list