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

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

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


Subject: 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:darya_akbari@yahoo.com] 
> Sent: Tuesday, June 05, 2007 11:09
> To: docbook-apps@lists.oasis-open.org
> 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: docbook-apps-unsubscribe@lists.oasis-open.org
> For additional commands, e-mail: 
> docbook-apps-help@lists.oasis-open.org
> 
> 


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