Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Libraries

    XMLNews::HTMLTemplate 0.01

    Download button

    No screenshots available
    Downloads: 343  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    David Megginson | More programs
    Perl Artistic License / FREE
    September 14th, 2006, 04:05 GMT
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    XMLNews::HTMLTemplate description

    XMLNews::HTMLTemplate is Perl module for converting NITF to HTML.

    XMLNews::HTMLTemplate is Perl module for converting NITF to HTML.

    SYNOPSIS

    use XMLNews::HTMLTemplate;

    my $template = new XMLNews::HTMLTemplate();
    $template->readTemplate("mytemplate.html");

    $template->applyTemplate("output.html", "story.xml", "story.rdf");

    NOTE: this module requires the XML::Parser and XMLNews::Meta modules.

    WARNING: this module is not thread-safe or re-entrant.

    The XMLNews::HTMLTemplate module provides a simple mechanism for creating HTML pages from XML/NITF news stories and/or XML/RDF metadata files based on a user-supplied template file. The template is a simple HTML file (SGML or XML flavour) using special template commands, which the user includes as processing instructions, as in the following example:



    To create an HTML page, you must first create an empty HTMLTemplate object:

    my $template = new XMLNews::HTMLTemplate();

    Next, you load the HTML template into the object:

    $template->readTemplate("mytemplate.html");

    Now, you can apply the same compiled template object repeatedly to different XML/NITF and/or XML/RDF documents to generate HTML pages:

    $template->applyTemplate("outfile.html", "newsstory.xml", "newsstory.rdf");

    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    Perl module | converting NITF | NITF to HTML | XMLNews::HTMLTemplat | Perl | module

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM