Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Perl to DocBook

by ghenry (Vicar)
on Jul 08, 2006 at 20:45 UTC ( [id://559956]=note: print w/replies, xml ) Need Help??


in reply to Perl to DocBook

Hi,

For Docbook XML, just use the <computeroutput> or <programlisting> tags.

See:
http://fedora.redhat.com/docs/documentation-guide/s1-xml-tags-compoutput.html

Part of the Amanda docs I helped do:
http://amanda.cvs.sourceforge.net/amanda/xml-docs/howto/install.xml?revision=1.20&view=markup

P.S> I am on the Fedora Core Docs team ;-)

Walking the road to enlightenment... I found a penguin and a camel on the way.....
Fancy a yourname@perl.me.uk? Just ask!!!

Replies are listed 'Best First'.
Re^2: Perl to DocBook
by jmerelo (Sexton) on Jul 08, 2006 at 21:47 UTC
    Yep, that's what I'm using, but I would like the Perl code to be automatically DocBook-tagged, if possible. I've done a bit towards it, but not enough!

      I don't understand. Where is this code?

      What more do you need other than <programlisting>?

      Walking the road to enlightenment... I found a penguin and a camel on the way.....
      Fancy a yourname@perl.me.uk? Just ask!!!
        This is what I mean, to have this kind of listing within programlisting:
        <emphasis>#!/usr/bin/perl</emphasis> <function>print</function> "A estas horas, el Estudiante, no creyendo +su buen suceso y deshollinando con el vestido y los ojos el zaquizamí...\n"; <function>sleep</function> <constant">10</constant>;
        I'm not aware of docbook filters doing that kind of stuff automatically, that's why I've hacked that script. The question is, is there any other (better) way of doing it?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://559956]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (5)
As of 2024-03-28 19:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found