Re: Extended ODF schema

2023-02-13 Thread Laurent Balland
Hello Michael, Le 13/02/2023 à 11:13, Michael Stahl a écrit : On 10.02.23 19:23, Laurent Balland wrote: Then I get the following errors: - /tmp/libtest_sc_sparkline_test.sorjp6.tmp/styles.xml[2,9446]: Error: tag name "number:text" is not allowed. Possible tag names are: ,,, number:text

Re: Extended ODF schema

2023-02-13 Thread Michael Stahl
On 10.02.23 19:23, Laurent Balland wrote: Then I get the following errors: - /tmp/libtest_sc_sparkline_test.sorjp6.tmp/styles.xml[2,9446]: Error: tag name "number:text" is not allowed. Possible tag names are: ,,, number:text loext:blank-width-char=")">

Re: Extended ODF schema

2023-02-12 Thread laurent.balland
Thanks Regina for the hint. The problem should be in the code (and not in schema) as it should not generate any loext:blank-width-text=")" attribute.Envoyé depuis mon appareil Galaxy

Re: Extended ODF schema

2023-02-11 Thread Regina Henschel
Hi Laurent, I see no problem in your new version below, but Michael is the expert for RELAX. Perhaps he knows a solution. Here only some ideas, what you could do: Do you have inspect the tmp file of the failing test, whether it really has the expected markup? Do you have confirmed, that

Re: Extended ODF schema

2023-02-10 Thread Laurent Balland
Hi Regina, Le 10/02/2023 à 20:21, Regina Henschel a écrit : Hi Laurent, can you please give examples, what markup you want to achieve in the document file. Kind regards, Regina Here is an example of markup generated:      number:min-decimal-places="2" number:min-integer-digits="2"/>   

Re: Extended ODF schema

2023-02-10 Thread Regina Henschel
Hi Laurent, can you please give examples, what markup you want to achieve in the document file. Kind regards, Regina

Re: Extended ODF schema

2023-02-10 Thread Laurent Balland
Hello, Le 08/02/2023 à 14:09, Michael Stahl a écrit : if it should go on the numer:text element, it needs to be a child of its rng:element - currently it's not extensible (via "combine" feature):               so you have to override it - at the start of the libreoffice schema

Re: Extended ODF schema

2023-02-08 Thread Michael Stahl
On 07.02.23 23:39, Regina Henschel wrote: Hi Laurent, This is all without warranty, I am not an expert on rng. Laurent Balland schrieb am 07.02.2023 um 21:50: Hello, I'm trying to modify schema/libreoffice/OpenDocument-v1.3+libreoffice-schema.rng to add a new attribute to number:text I

Re: Extended ODF schema

2023-02-07 Thread Regina Henschel
Hi Laurent, This is all without warranty, I am not an expert on rng. Laurent Balland schrieb am 07.02.2023 um 21:50: Hello, I'm trying to modify schema/libreoffice/OpenDocument-v1.3+libreoffice-schema.rng to add a new attribute to number:text I added:                    

Extended ODF schema

2023-02-07 Thread Laurent Balland
Hello, I'm trying to modify schema/libreoffice/OpenDocument-v1.3+libreoffice-schema.rng to add a new attribute to number:text I added:                                   But I got the following error:

Re: Update of extended ODF schema

2022-07-08 Thread Regina Henschel
Hi Laurent, Laurent Balland schrieb am 08.07.2022 um 17:36: Thank you Regina for your advise. I will try it this week-end, or do without modifying v1.3+libreoffice-schema as you suggested. But from my point of view, the v1.3-schema contains an error, as the OASIS text is the core rule,

Re: Update of extended ODF schema

2022-07-08 Thread Laurent Balland
Thank you Regina for your advise. I will try it this week-end, or do without modifying v1.3+libreoffice-schema as you suggested. But from my point of view, the v1.3-schema contains an error, as the OASIS text is the core rule, doesn't it? Best regards, Laurent

Re: Update of extended ODF schema

2022-07-08 Thread Regina Henschel
Hi Laurent, Laurent Balland schrieb am 08.07.2022 um 09:52: Hello, I'm trying to extend number format in Calc to get embedded text in decimal part [1]. ODF1.3 requires only positive position to have embedded text in integer part. I need to modify

Re: Update of extended ODF schema

2022-07-08 Thread Regina Henschel
Hi Laurent, Laurent Balland schrieb am 08.07.2022 um 13:52: Hi Regina, Actually, ODF1.3 specifies only strictly positive number: "The index of a position starts with 1" [1] and Eike asked for a loext:position attribute if negative or null position. [2] The text says "starts with 1" but the

Re: Update of extended ODF schema

2022-07-08 Thread Laurent Balland
Hi Regina, Actually, ODF1.3 specifies only strictly positive number: "The index of a position starts with 1" [1] and Eike asked for a loext:position attribute if negative or null position. [2] So I need a loext:position attribute, to support for negative index. But if there is only only

Re: Update of extended ODF schema

2022-07-08 Thread Regina Henschel
Hi Laurent, I do not understand your problem. The schema allows already negative values in attribute number:position. 'integer' includes negative values. Could you please give an example of a number, which uses the desired number format? Kind regards, Regina

Update of extended ODF schema

2022-07-08 Thread Laurent Balland
Hello, I'm trying to extend number format in Calc to get embedded text in decimal part [1]. ODF1.3 requires only positive position to have embedded text in integer part. I need to modify schema/libreoffice/OpenDocument-v1.3+libreoffice-schema.rng to have negative position.