Extended ODF schema
Laurent Balland
laurent.balland at mailo.fr
Fri Feb 10 18:23:56 UTC 2023
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):
>
> <rng:define name="number-text">
> <rng:element name="number:text">
> <rng:text/>
> </rng:element>
> </rng:define>
>
> so you have to override it - at the start of the libreoffice schema
> there is an rng:include, paste the above into this include element and
> adapt it - this will override what is in the included file.
>
Thanks for your feedback. I made some progress, but it does not yet work.
I added in rng:include
<rng:define name="number-text">
<rng:element name="number:text">
<rng:optional>
<rng:ref name="number-text-attlist"/>
</rng:optional>
<rng:text/>
</rng:element>
</rng:define>
and define number-text-attlist outside rng:include
<rng:define name="number-text-attlist">
<rng:interleave>
<rng:optional>
<rng:attribute name="loext:blank-width-char">
<rng:ref name="string"/>
</rng:attribute>
</rng:optional>
</rng:interleave>
</rng:define>
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:
<fraction>,<map>,<number>,<scientific-number>
number:text loext:blank-width-char=")">
</number:text><number:text/></number:nu
----^
/tmp/libtest_sc_sparkline_test.sorjp6.tmp/styles.xml[2,10964]: Error:
tag name "number:text" is not allowed. Possible tag names are:
<map>,<number>
number:text loext:blank-width-char=")">
</number:text></number:currency-style><
I do not understand what I made wrong. Why validator is expecting
loext:blank-width-char with other tags than number:text?
Best regards
Laurent Balland
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice/attachments/20230210/e7773d4d/attachment.htm>
More information about the LibreOffice
mailing list