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: 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 &lt; and &gt; 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 &lt; and &gt; for '<' and '>'
> respectively.
> 
> Joe
> 


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