On 30 October 2011 06:42, Dag Wieers <[email protected]> wrote: > On Sat, 29 Oct 2011, Lex Trotman wrote: > >>> There is a very big problem with ODF where paragraphs inside paragraphs >>> are >>> not allowed. This means that we have to be very careful that this does >>> not >>> occur. Unfortunately, when doing odt.conf it is unclear how blocks are >>> nested, and how to prevent this from happening in the first place. >>> >>> To me it's the biggest concern at the moment for ODF support :-/ >> >> Not wishing to put words in his mouth, but Stuart's answer in the past >> has always been that asciidoc does not enforce backend restrictions, >> see >> http://www.methods.co.nz/asciidoc/faq.html#_asciidoc_sometimes_generates_invalid_output_markup_why > > Hmm, that by itself makes (guaranteed) ODF support impossible. >
Well no better or worse than any other backend, for docbook it is possible to nest illegally in asciidoc too. (X)HTML nesting is so liberal its rarely a problem. > >> I will make the odt backend run xmllint when Stuart approves or >> provides an alternative to the a2x changes. (and when I get my machine >> rebuilt from hard disk failure). > > But xmllint does not consider this a problem, nor can it offer a remedy. Well, if the ODF DTD allows nesting then Libreoffice is wrong if it rejects it. If the DTD prevents it then xmllint should complain. If the DTD is wrong then Oasis should fix it. Whilst xmllint error messages are often cryptic, they do tell you what you did wrong. Cheers Lex -- You received this message because you are subscribed to the Google Groups "asciidoc" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/asciidoc?hl=en.
