Re: Quickbook block element

John Maddock <[email protected]>
Newsgroups gmane.comp.lib.boost.documentation
Message-ID <E86029344A654DFB952A4E15FB6411B5@acerlaptop>
> This is something I've implemented but not checked in yet which is a
> little relevant to recent discussions. Currently when you might try to
> write something like this:
>
>    [template chapter[title] '''<chapter><title>'''[title]'''</title>''']
>    [template chapterend '''</chapter>''']
>
>    [chapter Just an example]
>
>    Chapter content.
>
>    [chapterend]
>
> It doesn't work because escaped docbook is considered to be a phrase
> element. Phrase elements are wrapped in a paragraph resulting in
> invalid xml such as:

Nod.  I hit this when writing auto-index and had to strip any enclosing 
paragraph outside the <index/> element.

How about a "block-template" as well as a "template" ?

I.e. templates are always expanded as phrases, and block-templates as 
blocks?

Just a thought, John.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.