This is the mail archive of the docbook@lists.oasis-open.org mailing list for the DocBook project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [docbook] Markup for Protocol/Dialogue


On Fri, May 23, 2003 at 11:13:04AM +0200,
 Gisbert Amm <gia@webde-ag.de> wrote 
 a message of 39 lines which said:

> > Server: HERE
> > Client: HELO I am here
...
> <screen>
>   <systemitem class="systemname">Server</systemitem>:
> <computeroutput><command>HERE</command></computeroutput>
>   <systemitem class="systemname">Client</systemitem>:
> <computeroutput><command>HELO</command><replaceable> I am
> here</replaceable></computeroutput>

It is very heavy and the formal protocol is quite lost among these
many elements. I would suggest a custom markup allowing things like:

<server>HERE</server>
<client>HELO</client>

If you're not used to DocBook customization, here is an example in the
declaration:

<!ELEMENT server (#PCDATA)>
<!ELEMENT client (#PCDATA)>
<!ENTITY % local.para.char.mix
        "|server|client">

And a possible (untested) stylesheet customization, here for HTML:

<xsl:template match="server">
<CODE><xsl:text>Server: </xsl:text><xsl:value-of select="text()"</CODE>
</xsl:template>
<!-- Same thing for the client -->

---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: docbook-help@lists.oasis-open.org


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]