[publican-list] Inline tags within verbatim environment
Joshua Wulf
jwulf at redhat.com
Wed Nov 16 22:31:39 UTC 2011
On 11/16/2011 05:16 PM, Raphael Hertzog wrote:
> Hi,
>
> On Wed, 16 Nov 2011, Joshua Wulf wrote:
>> You can achieve the result you want, it just means that if you use an
>> non-verbatim inline element within a verbatim tag you have to close it
>> when you want to force a line break.
>
> And also before each sequence of multiple spaces, and it's quite common in
> output of programs which align text in various columns (think df, free).
So you mean:
<screen>
...
<computeroutput>Something</computeroutput> <computeroutput>Column
Two</computeroutput> <computeroutput>column Three</computeroutput>
</screen>
Yeah, that would suck.
>
>> Inheriting also makes a kind of sense. Are there any other examples of
>> elements inheriting behaviour from the block level element that encloses
>> them? Or is this the only potential case for this kind of behaviour in
>> Docbook?
>
> This "XML standardization" is really specific to Publican AFAIK so it's
> difficult to compare with anything else.
>
> We do have elements that are treated as block when they are outside of
> blocks, but not when they are embedded in other blocks (this is the case
> of <indexterm> for instance). This is meaningful just to define the
> strings needed for a translation. It's the thing that comes closest to
> your "inheriting behaviour" request.
>
> In the XSL stylesheets, it's also quite common to look up the parent
> hierarchy to adapt the output. Just look how often "ancestor::" appears
> in the files.
>
> Cheers,
--
Give us your feedback on JBoss Enterprise Documentation, take the key
survey:
http://www.keysurvey.com/survey/361436/1065/
More information about the publican-list
mailing list