NAME
Pod::ToDocBook::TableDefault - Plugin for generating basic tables with =begin table and =end table.
SYNOPSIS
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);
DESCRIPTION
Pod::ToDocBook::TableDefault - Plugin for generating basic tables with =begin table and =end table.
XML FORMAT
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>
process_format $cdata name=>table param=><string>
Must retrun array ref to elements
SEE ALSO
XML::ExtOn, Pod::2::DocBook
AUTHOR
Zahatski Aliaksandr, <zag@cpan.org>
COPYRIGHT AND LICENSE
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.