--- /dev/null
+#! /usr/bin/perl
+use XML::Template;
+
+my $doc = XML::Template::process_file('../xml/clone.xml', {
+ 'color' => 'blue',
+ '#things' => XML::Template::alternate('li/class', [
+ ], 'odd', 'even')
+});
+print $doc->toString;
--- /dev/null
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
+ <head>
+ <title>Cloning test</title>
+ </head>
+ <body>
+ <p>My favourite color is blue; I like that very much.
+ All my favourite things:</p>
+ <ul/>
+ </body>
+</html>
#! /bin/sh
if [ -z "$TESTS" ]; then
- TESTS="passthru simple clone include attribute attribute2"
+ TESTS="passthru simple clone include attribute attribute2 attribute-empty"
fi
if [ -z "$LANGUAGES" ]; then
LANGUAGES="perl php python"