Data-Edit-Xml-To-Dita

 view release on metacpan or  search on metacpan

lib/Data/Edit/Xml/To/DitaVb.pm  view on Meta::CPAN

package Data::Edit::Xml::To::DitaVb;
our $VERSION = 20190708;
use warnings FATAL => qw(all);
use strict;
use Carp qw(confess cluck);
use Data::Dump qw(dump);
use Data::Edit::Xml;
use Data::Edit::Xml::Lint;
use Data::Edit::Xml::Xref;
use Data::Table::Text qw(:all);
use Dita::GB::Standard qw(:all);
use Flip::Flop;
use GitHub::Crud;
use Scalar::Util qw(blessed);
use Time::HiRes qw(time);
use utf8;

#D1 Convert Xml to the Dita standard.                                           # Convert Xml to the Dita standard.

sub changeBadXrefToPh{0}                                                        #I Change xrefs being placed in M3 by L<Data::Edit::Xml::Xref> to B<ph>.
sub clearCount       {&develop ? 1e4 : 1e6}                                     # Limit on number of files to clear from each output folder.

lib/Data/Edit/Xml/To/DitaVb.pm  view on Meta::CPAN

Copies of failing documents in a separate folder to speed up downloading.


=head2 fixBadRefs

Mask bad references using M3: the Monroe Masking Method if true


=head2 fixDitaRefs

Fix references in a corpus of L<Dita|http://docs.oasis-open.org/dita/dita/v1.3/os/part2-tech-content/dita-v1.3-os-part2-tech-content.html> documents that have been converted to the L<GB Standard|http://metacpan.org/pod/Dita::GB::Standard>.


=head2 fixFailingFiles

Fix failing files in the L<testFails|/testFails> folder if this attribute is true


=head2 fixXrefsByTitle

Fix failing xrefs by looking for the unique topic with a title that matches the text of the xref.



( run in 0.260 second using v1.01-cache-2.11-cpan-a838e43af63 )