RE: [docbook-apps] How to handle XML code in programlistings?

From
Peter Desjardins <>
Date
2007-06-05T15:16:30+00:00
ID
Thread
RE: [docbook-apps] How to handle XML code in programlistings?
Yes. I do it frequently.  Here is a sample programlisting with callouts.
It is followed by a calloutlist.

    <programlisting>&lt;BigElement&gt;
  &lt;UserLastName&gt;Sheehy&lt;/UserLastName&gt;
  &lt;UserFirstName&gt;Michael&lt;/UserFirstName&gt;
  &lt;UserLogin&gt;msheehy&lt;/UserLogin&gt;<co id="COUserLogin"
        linkends="UserLoginCO" />
  &lt;UserPassword&gt;ceeb&lt;/UserPassword&gt;
  &lt;UserAlias&gt;msheehy&lt;/UserAlias&gt;<co id="COUserAlias"
        linkends="UserAliasCO" />
&lt;/BigElement&gt;</programlisting>

    <calloutlist>
      <callout arearefs="COUserLogin" id="UserLoginCO">
        <para>Use this name to log in to the application.</para>
      </callout>

      <callout arearefs="COUserAlias" id="UserAliasCO">
        <para>A friendly name to display.</para>
      </callout>
    </calloutlist>

I did not escape all the XML tags myself, XMLMind XML Editor did that
for me.

Good luck.

Peter Desjardins

> -----Original Message-----
> From: Darya Said-Akbari [mailto:] 
> Sent: Tuesday, June 05, 2007 11:09
> To: 
> Subject: [docbook-apps] How to handle XML code in programlistings?
> 
> Hi, 
> 
> I would like to use <programlistingco> for some XML code.
> 
> Is it possible at all? 
> 
> Regards,
> Darya
> 
> 
>       __________________________________  Yahoo! Clever: Sie 
> haben Fragen? Yahoo! Nutzer antworten Ihnen. www.yahoo.de/clever
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: 
> For additional commands, e-mail: 
> 
> 
>