officecfg: reformat using xmllint

Stephan Bergmann sbergman at redhat.com
Mon Apr 22 04:06:34 PDT 2013


On 04/17/2013 10:07 PM, Thomas Arnhold wrote:
> 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? :)

Sounds good.

Stephan

> 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>



More information about the LibreOffice mailing list