<br><br><div class="gmail_quote">On Sun, May 20, 2012 at 4:43 PM, Jos van den Oever <span dir="ltr"><<a href="mailto:jos@vandenoever.info" target="_blank">jos@vandenoever.info</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Saturday 19 May <a href="tel:2012" value="+9722012">2012</a> 20:02:09 PM Gopalakrishna Bhat wrote:<br>
> Hi,<br>
><br>
> When trying to validate the document attached to<br>
> <a href="https://bugs.kde.org/show_bug.cgi?id=299639" target="_blank">https://bugs.kde.org/show_bug.cgi?id=299639</a> , the schema validator<br>
> throws the following error<br>
><br>
> error: element "text:numbered-paragraph" missing required attributes<br>
> "text:continue-numbering" and "text:start-value"<br>
><br>
> The ODF spec says that text:continue-numbering attribute has been<br>
> depricated for text:numbered-paragraph. Shouldn't this attribute be<br>
> optional in the schema?<br>
</div>Yes, that would make sense.<br>
<div class="im"><br>
> Also for text:start-value, I think this too should be optional, since<br>
> I might not want to give start value for each numbered paragraph.<br>
><br>
> BTW the related section in the schema says<br>
><br>
>                       <optional><br>
>                               <attribute name="text:style-name"><br>
>                                       <ref name="styleNameRef"/><br>
>                               </attribute><br>
>                               <attribute name="text:continue-numbering"><br>
>                                       <ref name="boolean"/><br>
>                               </attribute><br>
>                               <attribute name="text:start-value"><br>
>                                       <ref name="nonNegativeInteger"/><br>
>                               </attribute><br>
>                       </optional><br>
><br>
> OR Is this the problem with our validator then?<br>
<br>
</div>The group of attributes is optional. This means that if you specify<br>
text:continue-numbering, you also need to provide text:start-value and<br>
text:style-name. If a numbered paragraph is not a continuation, the value can<br>
be derived from the preceding paragraph.<br>
<br>
So the error message is correct given this schema, but the text:continue-<br>
numbering should indeed be optional in the schema.<br>
<br></blockquote><div>Do I need to raise a request somewhere to get this corrected?</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Cheers,<br>
Jos<br>
_______________________________________________<br>
calligra-devel mailing list<br>
<a href="mailto:calligra-devel@kde.org">calligra-devel@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/calligra-devel" target="_blank">https://mail.kde.org/mailman/listinfo/calligra-devel</a><br>
</blockquote></div><br>Regards,<div>Gopalakrishna<br clear="all"><div><br></div><br>
</div>