Created attachment 56393 [details] validated file file not passed validation on http://odf-validator.rhcloud.com/ error is: odt/content.xml[2,16296]: Error: attribute "text:anchor-page-number" has a bad value: "0" does not satisfy the "positiveInteger" type LibO 3.6.0 master a1275f8-9eed775-f061262
so a 0 page number is clearly invalid, but i can't reproduce this problem here. loaded the document in LO 3.4.3, 3.5rc3, master, it looks rather broken, but save it again and i get this: text:anchor-page-number="1" is this document imported from some Word format or something? there's some weird stuff in meta.xml (but generator is LibreOffice). resolving WORKSFORME for now, if you have a reproducible way to get an invalid document please reopen.
Created attachment 56497 [details] source document to reproduce this problem, open attached docx and immediately save as odt. If do any change, this becomes not reproducible
can reproduce it: after importing the docx bugdoc, the frame is indeed anchored on page 0. so i don't think it's a good idea to fix the ODF export for this, because writing an anchor type "page" without an anchor-page-number attribute doesn't sound like a good idea; have added an assertion on master for this. looks like something is going wrong in the docx import; i've noticed that there's some code in SwCntntNotify::~SwCntntNotify that wants to fix frame anchors, perhaps that has something to do with this... perhaps those who know the writerfilter stuff better can investigate?
Created attachment 60550 [details] Example document that when saved as ODT will generate invalid page number Here's another document demonstrating the issue. Open and then save as ODF to generate an invalid ODT file with a frame anchored to page number 0. Here's a copy of the source of the resulting ODT... http://docvert.com/test.odt.source/
On pc Debian x86-64 with master sources updated yesterday, I don't reproduce this problem but had others like these: Chem 161L Fall2011 Sched1_master.odt/styles.xml[2,7392]: Error: unexpected attribute "style:contextual-spacing" Chem 161L Fall2011 Sched1_master.odt/styles.xml[2,17169]: Error: unexpected attribute "style:layout-grid-snap-to-characters" Should we close this one and open new ones or should we rename this one, other?
About my last comment, I found 2 bugtrackers put in "See also" + https://wiki.documentfoundation.org/Development/ODF_Implementer_Notes#LibreOffice_ODF_extensions BTW, when saving with 4.1 sources, I didn't have "layout-grid-snap-to-characters" error
I have changed title to actually reproducible bug. I am not sure if to close this bug or not. @ Michael Stahl What do You think about this bug?
well thanks for hijacking this bug for a totally different one. please file *one* bug per attribute or element that the validator complains about. closing this bug per comment #5.