[docbook-css] Callouts

martin.gautier@myrnham.co.uk martin.gautier at myrnham.co.uk
Thu, 20 Jan 2005 21:19:11 +0000


Hmm.

Tricky one.

Any plans afoot? I'd hazzard a guess that CSS is going to have trouble. I 
don't grok Gecko/XUL so can't say whether it could cope...

Here's an example:

<example id="odbchelper.dict.del">
<title>Deleting Items from a Dictionary</title>
<screen><prompt>&gt;&gt;&gt; </prompt><userinput>d</userinput>
<computeroutput>{'server': 'mpilgrim', 'uid': 'sa', 'database': 'master',
42: 'douglas', 'retrycount': 3}</computeroutput>
<prompt>&gt;&gt;&gt; </prompt><userinput>del d[42]</userinput> <co 
id="odbchelper.dict.4.1"/>
<prompt>&gt;&gt;&gt; </prompt><userinput>d</userinput>
<computeroutput>{'server': 'mpilgrim', 'uid': 'sa', 'database': 'master', 
'retrycount': 3}</computeroutput>
<prompt>&gt;&gt;&gt; </prompt><userinput>d.clear()</userinput> <co 
id="odbchelper.dict.4.2"/>
<prompt>&gt;&gt;&gt; </prompt><userinput>d</userinput>
<computeroutput>{}</computeroutput></screen>
</example>
<calloutlist>
<callout arearefs="odbchelper.dict.4.1">
<para><function>del</function> lets you delete individual items from a 
dictionary by key.</para>
</callout>
<callout arearefs="odbchelper.dict.4.2">
<para><function>clear</function> deletes all items from a dictionary. Note 
that the set of empty curly braces signifies a dictionary without any 
items.</para>
</callout>
</calloutlist>