kolibrios/programs/network/netsurf/libdom/test/transform.pl
Dmitry Pereverzev (SoUrcerer) 370da47fa0 Netsurf initial port (still needs native ui and cURL)
git-svn-id: svn://kolibrios.org@3584 a494cfbc-eb01-0410-851d-a64ba20cac60
2013-06-01 17:14:14 +00:00

24 lines
612 B
Perl
Executable File

#!/usr/bin/perl
# This file is part of libdom.
# It is used to generate libdom test files from the W3C DOMTS.
#
# Licensed under the MIT License,
# http://www.opensource.org/licenses/mit-license.php
# Author: Bo Yang <struggleyb.nku@gmail.com>
use warnings;
use strict;
use lib qw(test);
use XML::Parser::PerlSAX;
use DOMTSHandler;
if ($#ARGV ne 2) {
die "Usage: perl transform.pl dtd-file testcase basedir testcase-file";
}
my $handler = DOMTSHandler->new($ARGV[0], $ARGV[1]);
my $parser = XML::Parser::PerlSAX->new(Handler => $handler);
$parser->parse(Source => {SystemId => "$ARGV[2]"});