OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

office message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]

Subject: Re: [office] OFFICE-3765

On 26/04/18 15:42, Regina Henschel wrote:
Hi Michael,

Michael Stahl schrieb am 24.04.2018 um 13:35:
hi all,

so i've played around with the interleave idea and it does appear to
work with the ODF Toolkit validator, complaining about the invalid
duplicate or wrongly nested fill-character elements;
hence i've added a schema diff to the proposal of the issue.

Can you please test the attached file?
It has
    <number:number-style style:name="N10121" number:language="en" number:country="US" number:title="fill">       <number:scientific-number number:decimal-places="2" number:min-integer-digits="1" number:min-exponent-digits="2"/>
      <number:text> </number:text>

I have tested it with xmllint, but that fails. I guess xmllint is wrong here.
The corresponding format code in LibreOffice is 0.00E+00" "*~"m"
The use case is, to have at least one blank and the unit "m" right aligned. I have uses ~ as fill character, so that it is better visible; in the use case, you would have a blank as fill character.

this isn't allowed:

FillSplitScientificManual.ods/styles.xml[22,20]:  Error: tag name "number:text" is not allowed. Possible tag names are: <map>

and if i remove the number:fill-character:

/tmp/FillSplitScientificManual.ods/styles.xml[21,20]:  Error: tag name "number:text" is not allowed. Possible tag names are: <map>

... so what you want to do is essentially split one <number:text> in two? can't be done with this schema, and you can't put number:fill-character inside number:text either with it.

... it might work to put an <optional><element "number:text"></optional> right after the number:fill-character ... however that would also allow 2 consecutive number:text  in some cases ...

if this feature is really needed i'd rather do something like this:

    <define name="number-text">
        <element name="number:text">
            <ref name="number-fill-character"/>
                <element name="number:text">

Michael Stahl
Senior Software-Entwickler LibreOffice
CIB software GmbH
Geschäftsstelle Hamburg
Flachsland 10
22083 Hamburg
T +49 (40) / 28 48 42 -296
F +49 (40) / 28 48 42 -100
Sitz: München
Registergericht München, HRB 123286
Geschäftsführer: Dipl.-Ing. Ulrich Brandner

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]