OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

docbook message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]

Subject: Re: DOCBOOK: Block element for user input

On Wed, Feb 16, 2000 at 08:06:59PM +0200, Gershon Leib Joseph wrote:
> Consider the following sample:
> <step>
>   <para>Change directory to the <filename>/tmp</filename> directory:</para>
>   <para># <userinput>cd /tmp</userinput></para>
> </step>

     <para>Change directory to the <filename>/tmp</filename> directory:</para>

     <screen><prompt>#</prompt> <userinput>cd /</userinput></screen>

To see what that looks like when converted to HTML, take a look at 

>   <userinput prompt='root'>cd /tmp</userinput>
> - Less markup (obvious advantages ;-)  )

Use an editor that helps.

> - Use attribute to set shell prompt. Legal values could include DOS, root
> and normal (for Unix) and perhaps others too for other operating systems.

Better idea.  Create a customisation layer of the DTD, and create some 
prompt.foo entities.  Two good ones we use on the FreeBSD Doc. Project are

    &prompt.root;         (becomes '<prompt>#</prompt>')
    &promtt.user;         (becomes '<prompt>%</prompt>')

For a DTD customisation that does this, and more, look at


Hope that helps,

    If you want to imagine the future, imagine a tennis shoe stamping
    on a penguin's face forever.
        --- with apologies to George Orwell

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]

Powered by eList eXpress LLC