officecfg: reformat using xmllint
Thomas Arnhold
thomas-libo at arnhold.org
Wed Apr 17 13:07:10 PDT 2013
Hi Stephan,
thanks for the hint. So I load the dtd and now the whitespaces inside
the value tag like in your example are preserved.
xmllint --loaddtd officecfg/registry/data.dtd --format
officecfg/registry/schema/org/openoffice/Office/Recovery.xcs
Looks quite sane. Or am I too naive? :)
Thomas
On 17.04.2013 13:13, Stephan Bergmann wrote:
> On 04/17/2013 03:20 AM, Thomas Arnhold wrote:
>> does anyone have objections against running xmllint on officecfg like
>> fe4260c53e7df91a4d2dad06104d7979a212de29 did?
>
> Isn't xmllint --fromat, without access to a DTD, fundamentally flawed,
> in that it cannot decide whether an element has mixed content and all
> whitespace would need to be left unchanged? In principle, this could
> affect .xcu file content like
>
> <value> <unicode oor:scalar="0"/></value>
>
> Stephan
More information about the LibreOffice
mailing list