fb2edit icon indicating copy to clipboard operation
fb2edit copied to clipboard

xsd errors

Open AdUser opened this issue 8 years ago • 0 comments

Error 1824: Element '{http://www.gribuser.ru/xml/fictionbook/2.0}date', attribute 'value': '2017-06-15 01:43:28' is not a valid value of the atomic type 'xs:date'.

In FictionBook > description > document-info > date

Error 1868: Element '{http://www.gribuser.ru/xml/fictionbook/2.0}style': The attribute 'name' is required but missing.

Title on newly created section now looks like this:

<section>
  <title>
    <p><style>Some text</style></p>

"Style" tag is useless here without class or name attr.

Error 1871: Element '{http://www.gribuser.ru/xml/fictionbook/2.0}p': This element is not expected. Expected is one of ( {http://www.gribuser.ru/xml/fictionbook/2.0}title, {http://www.gribuser.ru/xml/fictionbook/2.0}epigraph, {http://www.gribuser.ru/xml/fictionbook/2.0}subtitle, {http://www.gribuser.ru/xml/fictionbook/2.0}stanza )

Also on newly created section. It should contain either <section> or <p>.

Need some more restrictions on tag placement and order? Or maybe checking against fb2's xsd on save?

AdUser avatar Jun 14 '17 16:06 AdUser