XML::Grammar::Fortune iconXML::Grammar::Fortune 0.0400

Collect quotes (or Unix-like fortune cookies)
XML::Grammar::Fortune is a Perl module that allows one to collect quotes (or Unix-like fortune cookies) using an XML grammar, with a lot of rich meta-data, and to produce XHTML and plaintext from them.

SYNOPSIS

 use XML::Grammar::Fortune;

 # Validate files.

 my $validator =
 XML::Grammar::Fortune->new(
 {
 mode => "validate"
 }
 );

 # Returns 0 upon success - dies otherwise
 exit($validator->run({input => "my-fortune-file.xml"}));

 # Convert files to XHTML.
 
 my $converter =
 XML::Grammar::Fortune->new(
 {
 mode => "convert_to_html",
 output_mode => "filename"
 }
 )
 
 $converter->run(
 {
 input => "my-fortune-file.xml",
 output => "resultant-file.xhtml",
 }
 )

last updated on:
October 25th, 2010, 1:15 GMT
price:
FREE!
developed by:
Shlomi Fish
license type:
MIT/X Consortium License 
category:
ROOT \ Text Editing&Processing \ Markup

FREE!

In a hurry? Add it to your Download Basket!

user rating

UNRATED
0.0/5
 

0/5

Add your review!

SUBMIT