Pod::ToDocBook::TableDefault - Plugin for generating basic tables with =begin table and =end table.
use Pod::ToDocBook::Pod2xml; use Pod::ToDocBook::TableDefault; use XML::ExtOn ('create_pipe'); my $buf; my $w = new XML::SAX::Writer:: Output => \$buf; my $px = new Pod::ToDocBook::Pod2xml:: header => 0, doctype => 'chapter'; my $p = create_pipe( $px, qw( Pod::ToDocBook::TableDefault ), $w ); $p->parse($text);
For POD:
=begin table table title left, center, right column name 1,"testname , meters", name3 123 , 123 , 123 1,2,"2, and 3" =end table
Result:
<table> <title>table title</title> <tgroup cols="3"> <colspec align="left"/> <colspec align="center"/> <colspec align="right"/> <thead> <row> <entry>column name 1</entry> <entry>testname , meters</entry> <entry> name3</entry> </row> </thead> <tbody> <row> <entry>123 </entry> <entry> 123 </entry> <entry> 123</entry> </row> <row> <entry>1</entry> <entry>2</entry> <entry>2, and 3</entry> </row> </tbody> </tgroup> </table>
Must retrun array ref to elements
XML::ExtOn, Pod::2::DocBook
Zahatski Aliaksandr, <zag@cpan.org>
Copyright (C) 2009 by Zahatski Aliaksandr
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.8 or, at your option, any later version of Perl 5 you may have available.
To install Pod::ToDocBook, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Pod::ToDocBook
CPAN shell
perl -MCPAN -e shell install Pod::ToDocBook
For more information on module installation, please visit the detailed CPAN module installation guide.