3 $filename = $uri = $ARGV[0];
4 $outputfile = $filename.".xml";
5 $uri =~ s/^backward/cic:/;
6 $uri =~ s/(.*),([^,]*),([^,]*)/$1#xpointer(1\/$2\/$3)/;
7 $uri =~ s/(.*),([^,]*)/$1#xpointer(1\/$2)/;
9 print "Now processing file $filename\n";
11 open(HEADER,">>$outputfile");
13 <?xml version="1.0" encoding="ISO-8859-1"?>
15 <rdf:RDF xml:lang="en" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:h="http://www.cs.unibo.it/helm/schemas/schema-h.rdf#">
16 <h:Object rdf:about="$uri">
20 system("cat $filename >> $outputfile");
22 open(FOOTER,">>$outputfile");