This is the mail archive of the 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 <> 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:


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

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

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>
<!-- Same thing for the client -->

To unsubscribe, e-mail:
For additional commands, e-mail:

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