<div dir="ltr"><div><div>Hey,<br><br>so I was just looking through some of out calc issues and found a surprising validation error. According to odfvalidator the following snippet is invalid.<br><br>    <number:number-style style:name="N125P1" style:volatile="true"><br>      <loext:text>-</loext:text><br>      <loext:fill-character> </loext:fill-character><br>      <number:number number:decimal-places="2" number:min-integer-digits="1" number:grouping="true"/><br>      <number:text> SIT </number:text><br>    </number:number-style><br><br><br>It took me some time to understand why it complains but at least to my understanding that snippet is valid. odfvalidator seems to strip the loext entries and leaves the - resulting in the following xml snippet:<br><br>    <number:number-style style:name="N125P1" style:volatile="true"><br>      -<number:number number:decimal-places="2" number:min-integer-digits="1" number:grouping="true"/><br>      <number:text> SIT </number:text><br>    </number:number-style><br><br>which is of course an invalid xml file.<br><i><br></i>Now looking at the ODF 1.2 spec about handling of foreign elements we find the following paragraph:<i><br><br>If a foreign element has a <text:h> or <text:p> ancestor element, and is a child element of an<br>element for which the OpenDocument schema permits the inclusion of character data, and if the<br>OpenDocument schema permits the inclusion of character data for all its ancestors up to the<br><text:p> or <text:h> element ancestor element, then the element's content may be<br>interpreted by conforming OpenDocument consumers, and the document itself shall be valid<br>against the OpenDocument schema as if the foreign element's start- and end-tags or its empty-<br>element-tag are removed.<br>For a foreign element that occurs at another location, conforming consumers should not interpret<br>the element's content, but may preserve its content.<br><br></i></div>My interpretation of that paragraph that it is valid to include character data in foreign elements and that they should be stripped similar to the xml element. Is my reading of the spec wrong?<br><br></div>Regards,<br>Markus<br></div>