<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Hello,</p>
    <p>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.</p>
    <p>I need to modify
      schema/libreoffice/OpenDocument-v1.3+libreoffice-schema.rng to
      have negative position.</p>
    <p>schema/odf1.3/OpenDocument-v1.3-schema.rng contains:</p>
    <p>  <rng:define name="number-number"><br>
          <rng:element name="number:number"><br>
            <rng:ref name="number-number-attlist"/><br>
            <rng:ref name="common-decimal-places-attlist"/><br>
            <rng:ref name="common-number-attlist"/><br>
            <rng:zeroOrMore><br>
              <rng:ref name="number-embedded-text"/><br>
            </rng:zeroOrMore><br>
          </rng:element><br>
        </rng:define><br>
      ...</p>
    <p>  <rng:define name="number-embedded-text"><br>
          <rng:element name="number:embedded-text"><br>
            <rng:ref name="number-embedded-text-attlist"/><br>
            <rng:text/><br>
          </rng:element><br>
        </rng:define><br>
        <rng:define name="number-embedded-text-attlist"><br>
          <rng:attribute name="number:position"><br>
            <rng:ref name="integer"/><br>
          </rng:attribute><br>
        </rng:define><br>
    </p>
    <p>So, in OpenDocument-v1.3+libreoffice-schema.rng, I added:</p>
    <p>  <rng:define name="number-number" combine="choice"><br>
          <rng:element name="number:number"><br>
            <rng:zeroOrMore><br>
              <rng:ref name="loext-embedded-text-decimal"/><br>
            </rng:zeroOrMore><br>
          </rng:element><br>
        </rng:define><br>
        <rng:define name="loext-embedded-text-decimal"><br>
          <rng:element name="loext:embedded-text-decimal"><br>
            <rng:ref name="loext-embedded-text-decimal-attlist"/><br>
            <rng:text/><br>
          </rng:element><br>
        </rng:define><br>
        <rng:define name="loext-embedded-text-decimal-attlist"><br>
          <rng:attribute name="loext:position"><br>
            <rng:ref name="integer"/><br>
          </rng:attribute><br>
        </rng:define><br>
    </p>
    <p>But in my unit test, when I open a file containing negative
      position of embedded text, I get an error:</p>
    <p>-
/tmp/ScExportTest2__testEmbeddedTextInDecimal_1to7ov.tmp/styles.xml[2,3146]: 
      Error: tag name "loext:embedded-text-decimal" is not allowed.
      Possible tag names are: <embedded-text><br>
      dded-text-decimal number:position="-4">
      </loext:embedded-text-decimal><loext:em<br>
    </p>
    <p>How to write correctly OpenDocument-v1.3+libreoffice-schema.rng ?</p>
    <p><br>
    </p>
    <p>Thanks for your help.</p>
    <p><br>
    </p>
    <p>Laurent Balland</p>
    <p>[1] <a class="moz-txt-link-freetext" href="https://gerrit.libreoffice.org/c/core/+/135918">https://gerrit.libreoffice.org/c/core/+/135918</a><br>
    </p>
    <div id="grammalecte_menu_main_button_shadow_host" style="width:
      0px; height: 0px;"></div>
  </body>
</html>