Thanks a lot!!! So simple, I always wanted to do this. To use a single openblock with a labeled list:
label:: + -- many things here. -- I didn't know we could use like this. *This is not documented*. :) git grep -e "^--$" -B 2 Em quinta-feira, 29 de maio de 2014 11h18min55s UTC-3, Lex Trotman escreveu: > > On 30 May 2014 00:11, Eduardo Santana <[email protected] <javascript:>> > wrote: > > It doesn't build. > > > > Here's the error: > > > > wip.xml:145: element listitem: validity error : Element listitem content > > does not follow the DTD, expecting (calloutlist | glosslist | bibliolist > | > > itemizedlist | orderedlist | segmentedlist | simplelist | variablelist | > > caution | important | note | tip | warning | literallayout | > programlisting > > | programlistingco | screen | screenco | screenshot | synopsis | > cmdsynopsis > > | funcsynopsis | classsynopsis | fieldsynopsis | constructorsynopsis | > > destructorsynopsis | methodsynopsis | formalpara | para | simpara | > address > > | blockquote | graphic | graphicco | mediaobject | mediaobjectco | > > informalequation | informalexample | informalfigure | informaltable | > > equation | example | figure | table | msgset | procedure | sidebar | > > qandaset | task | anchor | bridgehead | remark | highlights | abstract | > > authorblurb | epigraph | indexterm | beginpage)+, got () > > Yes because you have an empty list item, see the (), like I said > > xxx:: > -- > blah > -- > > the open block is *not* part of the list item, it ends the list > because it is another block. > > By ending the list it leaves the last list item empty, and thats what > xmllint is complaining about. > > Add the plus like I said, it builds fine. > > xxx:: > + > -- > blah > -- > > Cheers > Lex > > > </listitem> > > > > > > Here's the doocbook xml code: > > > > <chapter id="_this_works"> > > <title>This works</title> > > <variablelist> > > <varlistentry> > > <term> > > It will NOT work > > </term> > > <listitem> > > </listitem> > > </varlistentry> > > </variablelist> > > <simpara>Text here.</simpara> > > <orderedlist numeration="arabic"><title>Block here</title> > > <listitem> > > <simpara> > > item > > </simpara> > > </listitem> > > <listitem> > > <simpara> > > item > > </simpara> > > </listitem> > > </orderedlist> > > <simpara>More text.</simpara> > > </chapter> > > > > > > > > > > Em quinta-feira, 29 de maio de 2014 09h56min14s UTC-3, Lex Trotman > escreveu: > >> > >> On 29 May 2014 22:43, Eduardo Santana <[email protected]> wrote: > >> > When I have a Labeled list, and I want to start it with an openblock > it > >> > doesn't work: > >> > >> What do you mean by "doesn't work"? It produces no output, it doesn't > >> look like you expect (which is?) or what? > >> > >> I'm guessing you mean the first case does not put the open block in > >> the labelled list item? > >> > >> That is expected, the open block is another block, it causes the end > >> of the list item. > >> > >> > > >> > It will NOT work:: > >> > >> Put a + here like you have in the next example and the open block is > >> considered part of the labelled list. > >> > >> > -- > >> > Text here. > >> > > >> > .Block here > >> > . item > >> > . item > >> > > >> > More text. > >> > > >> > -- > >> > > >> > It will work:: > >> > Text here. > >> > + > >> > -- > >> > > >> > .Block here > >> > . item > >> > . item > >> > > >> > -- > >> > + > >> > More text. > >> > > >> > > >> > It will work:: > >> > Text here. > >> > + > >> > .Block here > >> > . item > >> > . item > >> > + > >> > More text. > >> > > >> > -- > >> > 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. > >> > For more options, visit https://groups.google.com/d/optout. > > > > -- > > 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. > > For more options, visit https://groups.google.com/d/optout. > -- 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. For more options, visit https://groups.google.com/d/optout.
