<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hello,<br>
</p>
<div class="moz-cite-prefix">Le 08/02/2023 à 14:09, Michael Stahl a
écrit :<br>
</div>
<blockquote type="cite"
cite="mid:201cd335-458e-4bd2-3e2b-d7e4731f23bc@libreoffice.org"><br>
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): <br>
<br>
<rng:define name="number-text"> <br>
<rng:element name="number:text"> <br>
<rng:text/> <br>
</rng:element> <br>
</rng:define> <br>
<br>
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. <br>
<br>
</blockquote>
<p>Thanks for your feedback. I made some progress, but it does not
yet work.</p>
<p>I added in rng:include</p>
<p> <rng:define name="number-text"><br>
<rng:element name="number:text"><br>
<rng:optional><br>
<rng:ref name="number-text-attlist"/><br>
</rng:optional><br>
<rng:text/><br>
</rng:element></p>
<p> </rng:define><br>
<br>
</p>
<p>and define number-text-attlist outside rng:include</p>
<p> <rng:define name="number-text-attlist"><br>
<rng:interleave><br>
<rng:optional><br>
<rng:attribute name="loext:blank-width-char"><br>
<rng:ref name="string"/><br>
</rng:attribute><br>
</rng:optional><br>
</rng:interleave><br>
</rng:define><br>
</p>
<p>Then I get the following errors:</p>
<p>- /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><br>
number:text loext:blank-width-char=")">
</number:text><number:text/></number:nu<br>
----^<br>
/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><br>
number:text loext:blank-width-char=")">
</number:text></number:currency-style><<br>
</p>
<p>I do not understand what I made wrong. Why validator is expecting
loext:blank-width-char with other tags than number:text?<br>
</p>
<p>Best regards</p>
<p>Laurent Balland<br>
</p>
<br>
<div id="grammalecte_menu_main_button_shadow_host" style="width:
0px; height: 0px;"></div>
</body>
</html>