This is the mail archive of the
docbook@lists.oasis-open.org
mailing list for the DocBook project.
Re: [docbook] Markup for Protocol/Dialogue
- From: Stephane Bortzmeyer <bortzmeyer at nic dot fr>
- To: Gisbert Amm <gia at webde-ag dot de>
- Cc: "'Michael P. Urban'" <urban at jord dot JPL dot NASA dot GOV>,docbook at lists dot oasis-open dot org
- Date: Sun, 25 May 2003 23:03:37 +0000
- Subject: Re: [docbook] Markup for Protocol/Dialogue
- References: <74ADFA8C453ED611A71E00508BBBA135D9EC24@exchange1.cinetic.de>
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