#! /usr/bin/perl
use XML::Template;
-my $doc = XML::Template::process_file('clone.xml', {
+my $doc = XML::Template::process_file('../xml/clone.xml', {
'color' => 'red',
'#things' => [
{ 'li' => 'Raindrops on roses', 'li.class' => 'odd' },
#! /usr/bin/perl
use XML::Template;
-my $doc = XML::Template::process_file('clone.xml', {
+my $doc = XML::Template::process_file('../xml/clone.xml', {
'color' => 'blue',
'#things' => XML::Template::alternate('li.class', [
{ 'li' => 'Raindrops on roses' },
#! /usr/bin/perl
use XML::Template;
-my $doc = XML::Template::process_file('clone.xml', {
+my $doc = XML::Template::process_file('../xml/clone.xml', {
'color' => 'blue',
'#things' => [
{ 'li' => 'Raindrops on roses' },
#! /usr/bin/perl
use XML::Template;
-my $doc = XML::Template::process_file('included.xml', {
+my $doc = XML::Template::process_file('../xml/included.xml', {
'color' => 'red'
});
-my $master = XML::Template::process_file('master.xml', {
+my $master = XML::Template::process_file('../xml/master.xml', {
'title' => 'Main HTML title',
'h1' => 'Nice heading here',
'contents' => $doc
#! /usr/bin/perl
use XML::Template;
-my $doc = XML::Template::process_file('simple.xml', {
+my $doc = XML::Template::process_file('../xml/simple.xml', {
'title' => 'A very basic example',
'#hello' => 'Hello world!'
});
<?php
require('xml-template.php');
-$doc = XML_Template_process_file('clone.xml', array(
+$doc = XML_Template_process_file('../xml/clone.xml', array(
'color' => 'red',
'#things' => array(
array( 'li' => 'Raindrops on roses', 'li.class' => 'odd' ),
<?php
require('xml-template.php');
-$doc = XML_Template_process_file('clone.xml', array(
+$doc = XML_Template_process_file('../xml/clone.xml', array(
'color' => 'blue',
'#things' => XML_Template_alternate('li.class', array(
array( 'li' => 'Raindrops on roses' ),
<?php
require('xml-template.php');
-$doc = XML_Template_process_file('clone.xml', array(
+$doc = XML_Template_process_file('../xml/clone.xml', array(
'color' => 'blue',
'#things' => array(
array( 'li' => 'Raindrops on roses' ),
<?php
require('xml-template.php');
-$doc = XML_Template_process_file('included.xml', array(
+$doc = XML_Template_process_file('../xml/included.xml', array(
'color' => 'red'
));
-$master = XML_Template_process_file('master.xml', array(
+$master = XML_Template_process_file('../xml/master.xml', array(
'title' => 'Main HTML title',
'h1' => 'Nice heading here',
'contents' => $doc
<?php
require('xml-template.php');
-$doc = XML_Template_process_file('simple.xml', array(
+$doc = XML_Template_process_file('../xml/simple.xml', array(
'title' => 'A very basic example',
'#hello' => 'Hello world!'
));