This is the mail archive of the
docbook@lists.oasis-open.org
mailing list for the DocBook project.
RE: escaping <'s
- From: David Cramer <dcramer at broadjump dot com>
- To: Josef Karthauser <joe at tao dot org dot uk>, "Grobe, Gary" <Gary_Grobe at bmc dot com>
- Cc: docbook at lists dot oasis-open dot org
- Date: Mon, 01 Jul 2002 16:55:40 -0500
- Subject: RE: DOCBOOK: escaping <'s
I think the semantics would be better if you use replaceable
<http://docbook.org/tdg/en/html/replaceable.html>:
<listitem><filename>/etc/<replaceable>service_id</replaceable></listitem
>
You could then override the template that matches replaceable in
inline.xsl so that replaceable things are surrounded by angle brackets
if that's your preferred style (see the template for citation as an
example of how to do this--tho you still have to use < and > in
the xsl). If service and id in your example are really separate
replaceable items, you would have to mark it up like this:
<listitem><filename>/etc/<replaceable>service</replaceable>_<replaceable
>id</replaceable></listitem>
David
> -----Original Message-----
> From: Josef Karthauser [mailto:joe@tao.org.uk]
> Sent: Monday, July 01, 2002 3:16 PM
> To: Grobe, Gary
> Cc: 'docbook@lists.oasis-open.org'
> Subject: Re: DOCBOOK: escaping <'s
>
>
> On Mon, Jul 01, 2002 at 03:10:27PM -0500, Grobe, Gary wrote:
> > How are brackets escaped so that one can add lines like ...
> >
> > <listitem>ROOT/etc/<service>_<id></listitem>
> >
> > Thanxs!
>
> I don't know - but you could try < and > for '<' and '>'
> respectively.
>
> Joe
>