Thanks for the clarification... I didn't put two-and-two together from the manual.
What's your thinking about just putting whatever docbook requires to generate the empty section? I would reckon its fine to infer user intent in this instance, and it doesn't seem that different to generating valid HTML? Or would that break the model of how asciidoc generates by requiring looking ahead in the document and then executing conditionally? On Friday, February 1, 2013 11:54:46 PM UTC+2, Stuart Rackham wrote: > > Empty sections are not valid in DocBook. See: > > http://asciidoc.org/faq.html#_asciidoc_sometimes_generates_invalid_output_markup_why > > > Cheers, Stuart > > On 02/02/13 04:33, inchoatus wrote: > > Create the following file (contents delimited by ////)as test.txt: > > > > //// > > > > == Hello > > > > > > == Hello 2 > > > > //// > > > > > > Running "asciidoc test.txt" here succeeds and generates the HTML. But > running "a2x -v -f test.txt" terminates with the error: > > > > > > a2x: ERROR: "xmllint" --nonet --noout --valid ".../test.xml" returned > non-zero exit status 4 > > > > > > Adding content after the first and second headers and rerunning then > will successfully generate a PDF. > > > > > > I like to plan my document structure in this way before writing content. > > > > > > I'm running: > > > > > > * asciidoc version 8.6.8 > > > > * installed via "ports" on MacOS 10.8.2 > > > > * python version 2.7.2 > > > > * dblatex version 0.3.4 > > > > > > Thanks! > > > > I > > > > -- > > You received this message because you are subscribed to the Google > > Groups "asciidoc" group. > > To unsubscribe from this group and stop receiving emails from it, send > > an email to [email protected] <javascript:>. > > To post to this group, send email to [email protected]<javascript:>. > > > Visit this group at http://groups.google.com/group/asciidoc?hl=en. > > For more options, visit https://groups.google.com/groups/opt_out. > > > > > -- You received this message because you are subscribed to the Google Groups "asciidoc" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/asciidoc?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
