Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^2: Perl to DocBook

by jmerelo (Sexton)
on Jul 08, 2006 at 21:47 UTC ( #559959=note: print w/replies, xml ) Need Help??


in reply to Re: Perl to DocBook
in thread Perl to DocBook

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!

Replies are listed 'Best First'.
Re^3: Perl to DocBook
by ghenry (Vicar) on Jul 08, 2006 at 22:22 UTC

    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?

        No, no. You don't do this inside <programminglisting>

        You are trying to do presentational tagging inside this. The XML tags are for content markup. The presentation is done via XSLT Stylesheets.

        In all the Docbook XML I have written/read, (Fedora, Amanda, Samba, Gentoo etc.) it's never done the way you are trying to do it.

        I may be way off, but if you have an example of where you have seen it done this way, I'd love to read it.

        Thanks,
        Gavin.

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

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (7)
As of 2020-05-28 08:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If programming languages were movie genres, Perl would be:















    Results (165 votes). Check out past polls.

    Notices?