Commits

Toby Inkster committed 7f0ed33

Beginnings of XML-Saxon-XSLT2 stuff.

Comments (0)

Files changed (170)

+#############################################################
+
+@prefix :        <http://usefulinc.com/ns/doap#> .
+@prefix dcs:     <http://ontologi.es/doap-changeset#> .
+@prefix dc:      <http://purl.org/dc/terms/> .
+@prefix foaf:    <http://xmlns.com/foaf/0.1/> .
+@prefix my:      <http://purl.org/NET/cpan-uri/dist/Example-Example/> .
+@prefix rdfs:    <http://www.w3.org/2000/01/rdf-schema#> .
+@prefix toby:    <http://tobyinkster.co.uk/#> .
+@prefix xsd:     <http://www.w3.org/2001/XMLSchema#> .
+
+#############################################################
+
+<>
+
+	dc:title         "Changes" ;
+	dc:description   "Revision history for Perl extension Example::Example."@en ;
+	dc:subject       my:project ;
+	dc:creator       toby:i .
+
+#############################################################
+
+my:v_0-01
+
+	a               :Version ;
+	dc:issued       "2000-01-01"^^xsd:date ;
+	:revision       "0.01"^^xsd:string ;
+	:file-release   <http://backpan.cpan.org/authors/id/T/TO/TOBYINK/Example-Example-0.01.tar.gz> ;
+	rdfs:comment    "Original version"@en .
+
+#############################################################
+
+my:project
+
+	a               :Project ;
+	:name           "Example-Example" ;
+	:shortdesc      "Example Project"@en ;
+	:programming-language  "Perl" ;
+	:homepage       <http://search.cpan.org/dist/Example-Example/> ;
+	:download-page  <http://search.cpan.org/dist/Example-Example/> ;
+	:bug-database   <http://rt.cpan.org/Dist/Display.html?Queue=Example-Example> ;
+	:repository     [ a :SVNRepository ; :browse <http://goddamn.co.uk/viewvc/perlmods/Example-Example/> ] ;
+	:maintainer     toby:i ;
+	:developer      toby:i ;
+	:documenter     toby:i ;
+	:tester         toby:i ;
+	:created        "2000-01-01"^^xsd:date ;
+	:license        <http://dev.perl.org/licenses/> ;
+	:release        my:v_0-01 .
+
+#############################################################
+
+toby:i
+
+	a               foaf:Person ;
+	foaf:name       "Toby Inkster" ;
+	foaf:homepage   <http://tobyinkster.co.uk/> ;
+	foaf:page       <http://search.cpan.org/~tobyink/> ;
+	foaf:mbox       <mailto:tobyink@cpan.org> ;
+	<http://www.w3.org/2002/07/owl#sameAs> <http://purl.org/NET/cpan-uri/person/tobyink> .
+
+#############################################################
+Changes
+Changes.ttl
+Changes.xml
+Makefile.PL
+MANIFEST
+MANIFEST.SKIP
+README
+META.yml
+SIGNATURE
+
+t/00sig.t
+t/01basic.t
+^Makefile$
+^blib/
+^pm_to_blib
+^blibdirs
+\.svn
+^example.*\.pl$
+^[^/]+\.(tar\.gz|tar\.bz2|tgz|tbz2|tbz|zip|tar)$
+^MYMETA..yml
+use strict;
+use warnings;
+
+use inc::Module::Install;
+
+my $dist = 'Example-Example';
+my $fn   = "lib/$dist.pm"; $fn =~ s#-#/#g;
+
+name                $dist;
+perl_version_from   $fn;
+version_from        $fn;
+abstract_from       $fn;
+readme_from         $fn;
+author              'Toby Inkster <tobyink@cpan.org>';
+license             'perl';
+
+test_requires       'Test::More' => '0.61';
+
+requires            'Carp'               => '1.00';
+requires            'DateTime'           => 0;
+requires            'RDF::Trine'         => '0.112';
+requires            'XML::LibXML'        => '1.60';
+requires            'URI'                => '1.30';
+
+# install_script 'fingerw';
+
+resources(
+	'homepage'   => "http://search.cpan.org/dist/$dist/",
+	'repository' => "http://goddamn.co.uk/viewvc/perlmods/$dist/",
+	'bugtracker' => "http://rt.cpan.org/Dist/Display.html?Queue=$dist",
+	);
+	
+write_doap_changes;
+write_doap_changes_xml;
+
+include 'Test::Signature';
+auto_install;
+WriteAll(
+	'meta' => 1,
+	'sign' => 1,
+	);

_Inline/build/XML/Saxon/XSLT2_0b8a/Transformer.java

+
+import net.sf.saxon.s9api.*;
+import org.xml.sax.Attributes;
+import org.xml.sax.ContentHandler;
+import org.xml.sax.InputSource;
+import org.xml.sax.SAXException;
+import org.xml.sax.helpers.XMLFilterImpl;
+import org.w3c.dom.Document;
+import org.xml.sax.Attributes;
+import org.xml.sax.ContentHandler;
+import org.xml.sax.InputSource;
+import org.xml.sax.SAXException;
+import org.xml.sax.helpers.XMLFilterImpl;
+
+import javax.xml.parsers.DocumentBuilderFactory;
+import javax.xml.parsers.ParserConfigurationException;
+import javax.xml.transform.ErrorListener;
+import javax.xml.transform.SourceLocator;
+import javax.xml.transform.TransformerException;
+import javax.xml.transform.sax.SAXSource;
+import javax.xml.transform.stream.StreamSource;
+import java.io.*;
+import java.math.BigDecimal;
+import java.net.URI;
+import java.util.*;
+
+public class Transformer
+{
+	private XsltExecutable xslt;
+	private Processor proc;
+	private HashMap<String, String> params;
+
+	public Transformer (String stylesheet)
+		throws SaxonApiException
+	{
+		proc = new Processor(false);
+		XsltCompiler comp = proc.newXsltCompiler();
+		xslt = comp.compile(new StreamSource(new StringReader(stylesheet)));
+		params = new HashMap<String, String>();
+	}
+	
+	public void paramClear ()
+	{
+		params.clear();
+	}
+
+	public void paramAdd (String key, String value)
+	{
+		params.put(key, value);
+	}
+
+	public void paramRemove (String key)
+	{
+		params.remove(key);
+	}
+
+	public String paramGet (String key)
+	{
+		return params.get(key);
+	}
+
+	public String transform (String doc, String method)
+		throws SaxonApiException
+	{
+		XdmNode source = proc.newDocumentBuilder().build(
+			new StreamSource(new StringReader(doc))
+			);
+		
+		Serializer out = new Serializer();
+		out.setOutputProperty(Serializer.Property.METHOD, method);
+		StringWriter sw = new StringWriter();
+		out.setOutputWriter(sw);
+		
+		Iterator i = params.keySet().iterator();
+		while (i.hasNext())
+		{
+			Object k = i.next();
+			Object v = params.get(k);
+			
+			System.out.println(">>> " + k + " => " + v "\n");
+		}
+
+		XsltTransformer trans = xslt.load();
+		trans.setInitialContextNode(source);
+		trans.setDestination(out);
+		trans.transform();
+		
+		return sw.toString();
+	}
+}
+

_Inline/build/XML/Saxon/XSLT2_0b8a/cmd.out

+Transformer.java:80: ')' expected
+			System.out.println(">>> " + k + " => " + v "\n");
+			                                          ^
+Transformer.java:80: illegal start of expression
+			System.out.println(">>> " + k + " => " + v "\n");
+			                                               ^
+2 errors

_Inline/build/XML/Saxon/XSLT2_3825/Transformer.java

+
+import net.sf.saxon.s9api.*;
+import org.xml.sax.Attributes;
+import org.xml.sax.ContentHandler;
+import org.xml.sax.InputSource;
+import org.xml.sax.SAXException;
+import org.xml.sax.helpers.XMLFilterImpl;
+import org.w3c.dom.Document;
+import org.xml.sax.Attributes;
+import org.xml.sax.ContentHandler;
+import org.xml.sax.InputSource;
+import org.xml.sax.SAXException;
+import org.xml.sax.helpers.XMLFilterImpl;
+
+import javax.xml.parsers.DocumentBuilderFactory;
+import javax.xml.parsers.ParserConfigurationException;
+import javax.xml.transform.ErrorListener;
+import javax.xml.transform.SourceLocator;
+import javax.xml.transform.TransformerException;
+import javax.xml.transform.sax.SAXSource;
+import javax.xml.transform.stream.StreamSource;
+import java.io.*;
+import java.math.BigDecimal;
+import java.net.URI;
+import java.util.*;
+
+public class Transformer
+{
+	private XsltExecutable xslt;
+	private Processor proc;
+	private HashMap<String, String> params;
+
+	public Transformer (String stylesheet)
+		throws SaxonApiException
+	{
+		proc = new Processor(false);
+		XsltCompiler comp = proc.newXsltCompiler();
+		xslt = comp.compile(new StreamSource(new StringReader(stylesheet)));
+		params = new HashMap<String, String>();
+	}
+	
+	public void paramClear ()
+	{
+		params.clear();
+	}
+
+	public void paramAdd (String key, String value)
+	{
+		params.put(key, value);
+	}
+
+	public void paramRemove (String key)
+	{
+		params.remove(key);
+	}
+
+	public String paramGet (String key)
+	{
+		return params.get(key);
+	}
+
+	public String transform (String doc, String method)
+		throws SaxonApiException
+	{
+		XdmNode source = proc.newDocumentBuilder().build(
+			new StreamSource(new StringReader(doc))
+			);
+		
+		Serializer out = new Serializer();
+		out.setOutputProperty(Serializer.Property.METHOD, method);
+		StringWriter sw = new StringWriter();
+		out.setOutputWriter(sw);
+		
+		Iterator i = params.keySet().interator();
+		while (i.hasNext())
+		{
+			String k = i.next();
+			System.out.println(">>> " + k + "\n");
+		}
+
+		XsltTransformer trans = xslt.load();
+		trans.setInitialContextNode(source);
+		trans.setDestination(out);
+		trans.transform();
+		
+		return sw.toString();
+	}
+}
+

_Inline/build/XML/Saxon/XSLT2_3825/cmd.out

+Transformer.java:74: cannot find symbol
+symbol  : method interator()
+location: interface java.util.Set<java.lang.String>
+		Iterator i = params.keySet().interator();
+		                            ^
+Transformer.java:77: incompatible types
+found   : java.lang.Object
+required: java.lang.String
+			String k = i.next();
+			                 ^
+2 errors

_Inline/build/XML/Saxon/XSLT2_44c4/Transformer.java

+
+import net.sf.saxon.s9api.*;
+import org.xml.sax.Attributes;
+import org.xml.sax.ContentHandler;
+import org.xml.sax.InputSource;
+import org.xml.sax.SAXException;
+import org.xml.sax.helpers.XMLFilterImpl;
+import org.w3c.dom.Document;
+import org.xml.sax.Attributes;
+import org.xml.sax.ContentHandler;
+import org.xml.sax.InputSource;
+import org.xml.sax.SAXException;
+import org.xml.sax.helpers.XMLFilterImpl;
+
+import javax.xml.parsers.DocumentBuilderFactory;
+import javax.xml.parsers.ParserConfigurationException;
+import javax.xml.transform.ErrorListener;
+import javax.xml.transform.SourceLocator;
+import javax.xml.transform.TransformerException;
+import javax.xml.transform.sax.SAXSource;
+import javax.xml.transform.stream.StreamSource;
+import java.io.*;
+import java.math.BigDecimal;
+import java.net.URI;
+import java.util.*;
+
+public class Transformer
+{
+	private XsltExecutable xslt;
+	private Processor proc;
+	private HashMap<String, XdmAtomicValue> params;
+
+	public Transformer (String stylesheet)
+		throws SaxonApiException
+	{
+		proc = new Processor(false);
+		XsltCompiler comp = proc.newXsltCompiler();
+		xslt = comp.compile(new StreamSource(new StringReader(stylesheet)));
+		params = new HashMap<String, XdmAtomicValue>();
+	}
+	
+	public void paramAddString (String key, String value)
+	{
+		params.put(key, new XdmAtomicValue(value));
+	}
+/*
+	public void paramAddLong (String key, long value)
+	{
+		params.put(key, new XdmAtomicValue(value));
+	}
+
+	public void paramAddDecimal (String key, BigDecimal value)
+	{
+		params.put(key, new XdmAtomicValue(value));
+	}
+
+	public void paramAddFloat (String key, float value)
+	{
+		params.put(key, new XdmAtomicValue(value));
+	}
+
+	public void paramAddDouble (String key, double value)
+	{
+		params.put(key, new XdmAtomicValue(value));
+	}
+
+	public void paramAddBoolean (String key, boolean value)
+	{
+		params.put(key, new XdmAtomicValue(value));
+	}
+
+	public void paramAddURI (String key, URI value)
+	{
+		params.put(key, new XdmAtomicValue(value));
+	}
+
+	public void paramAddQName (String key, String value)
+	{
+		params.put(key, new XdmAtomicValue(new QName(value.toString())));
+	}
+*/
+	public XdmAtomicValue paramGet (String key)
+	{
+		return params.get(key);
+	}
+
+	public void paramRemove (String key)
+	{
+		params.remove(key);
+	}
+	
+	public void paramClear ()
+	{
+		params.clear();
+	}
+
+	public String transform (String doc, String method)
+		throws SaxonApiException
+	{
+		XdmNode source = proc.newDocumentBuilder().build(
+			new StreamSource(new StringReader(doc))
+			);
+
+		XsltTransformer trans = xslt.load();
+		trans.setInitialContextNode(source);
+
+		Serializer out = new Serializer();
+		out.setOutputProperty(Serializer.Property.METHOD, method);
+		StringWriter sw = new StringWriter();
+		out.setOutputWriter(sw);
+		trans.setDestination(out);
+		
+		Iterator i = params.keySet().iterator();
+		while (i.hasNext())
+		{
+			Object k = i.next();
+			Object v = params.get(k);
+			
+			trans.setParameter(new QName(k.toString()), v);
+		}
+
+		trans.transform();
+		
+		return sw.toString();
+	}
+}
+

_Inline/build/XML/Saxon/XSLT2_44c4/cmd.out

+Transformer.java:119: setParameter(net.sf.saxon.s9api.QName,net.sf.saxon.s9api.XdmValue) in net.sf.saxon.s9api.XsltTransformer cannot be applied to (net.sf.saxon.s9api.QName,java.lang.Object)
+			trans.setParameter(new QName(k.toString()), v);
+			     ^
+1 error

_Inline/build/XML/Saxon/XSLT2_4d89/Transformer.java

+
+import net.sf.saxon.s9api.*;
+import org.xml.sax.Attributes;
+import org.xml.sax.ContentHandler;
+import org.xml.sax.InputSource;
+import org.xml.sax.SAXException;
+import org.xml.sax.helpers.XMLFilterImpl;
+import org.w3c.dom.Document;
+import org.xml.sax.Attributes;
+import org.xml.sax.ContentHandler;
+import org.xml.sax.InputSource;
+import org.xml.sax.SAXException;
+import org.xml.sax.helpers.XMLFilterImpl;
+
+import javax.xml.parsers.DocumentBuilderFactory;
+import javax.xml.parsers.ParserConfigurationException;
+import javax.xml.transform.ErrorListener;
+import javax.xml.transform.SourceLocator;
+import javax.xml.transform.TransformerException;
+import javax.xml.transform.sax.SAXSource;
+import javax.xml.transform.stream.StreamSource;
+import java.io.*;
+import java.math.BigDecimal;
+import java.net.URI;
+import java.util.*;
+
+public class Transformer
+{
+	private XsltExecutable xslt;
+	private Processor proc;
+	private HashMap<String, XdmAtomicValue> params;
+
+	public Transformer (String stylesheet)
+		throws SaxonApiException
+	{
+		proc = new Processor(false);
+		XsltCompiler comp = proc.newXsltCompiler();
+		xslt = comp.compile(new StreamSource(new StringReader(stylesheet)));
+		params = new HashMap<String, XdmAtomicValue>();
+	}
+	
+	public void paramAddString (String key, String value)
+	{
+		params.put(key, new XdmAtomicValue(value));
+	}
+
+	public void paramAddLong (String key, long value)
+	{
+		params.put(key, new XdmAtomicValue(value));
+	}
+
+	public void paramAddDecimal (String key, BigDecimal value)
+	{
+		params.put(key, new XdmAtomicValue(value));
+	}
+
+	public void paramAddFloat (String key, float value)
+	{
+		params.put(key, new XdmAtomicValue(value));
+	}
+
+	public void paramAddDouble (String key, double value)
+	{
+		params.put(key, new XdmAtomicValue(value));
+	}
+
+	public void paramAddBoolean (String key, boolean value)
+	{
+		params.put(key, new XdmAtomicValue(value));
+	}
+
+	public void paramAddURI (String key, String value)
+		throws java.net.URISyntaxException
+	{
+		params.put(key, new XdmAtomicValue(new URI(value.toString())));
+	}
+
+	public void paramAddQName (String key, String value)
+	{
+		params.put(key, new XdmAtomicValue(new QName(value.toString())));
+	}
+
+	public void paramAddDate (String key, String value)
+	{
+		params.put(key, new XdmAtomicValue(value, Type.DATE));
+	}
+
+	public void paramAddDateTime (String key, String value)
+	{
+		params.put(key, new XdmAtomicValue(value, Type.DATETIME));
+	}
+
+	public XdmAtomicValue paramGet (String key)
+	{
+		return params.get(key);
+	}
+
+	public void paramRemove (String key)
+	{
+		params.remove(key);
+	}
+	
+	public void paramClear ()
+	{
+		params.clear();
+	}
+
+	public String transform (String doc, String method)
+		throws SaxonApiException
+	{
+		XdmNode source = proc.newDocumentBuilder().build(
+			new StreamSource(new StringReader(doc))
+			);
+
+		XsltTransformer trans = xslt.load();
+		trans.setInitialContextNode(source);
+
+		Serializer out = new Serializer();
+		out.setOutputProperty(Serializer.Property.METHOD, method);
+		StringWriter sw = new StringWriter();
+		out.setOutputWriter(sw);
+		trans.setDestination(out);
+		
+		Iterator i = params.keySet().iterator();
+		while (i.hasNext())
+		{
+			Object k = i.next();
+			XdmAtomicValue v = params.get(k);
+			
+			trans.setParameter(new QName(k.toString()), v);
+		}
+
+		trans.transform();
+		
+		return sw.toString();
+	}
+}
+

_Inline/build/XML/Saxon/XSLT2_4d89/cmd.out

+Transformer.java:85: cannot find symbol
+symbol  : variable Type
+location: class Transformer
+		params.put(key, new XdmAtomicValue(value, Type.DATE));
+		                                          ^
+Transformer.java:90: cannot find symbol
+symbol  : variable Type
+location: class Transformer
+		params.put(key, new XdmAtomicValue(value, Type.DATETIME));
+		                                          ^
+2 errors

_Inline/build/XML/Saxon/XSLT2_52df/Transformer.java

+
+import net.sf.saxon.s9api.*;
+import org.xml.sax.Attributes;
+import org.xml.sax.ContentHandler;
+import org.xml.sax.InputSource;
+import org.xml.sax.SAXException;
+import org.xml.sax.helpers.XMLFilterImpl;
+import org.w3c.dom.Document;
+import org.xml.sax.Attributes;
+import org.xml.sax.ContentHandler;
+import org.xml.sax.InputSource;
+import org.xml.sax.SAXException;
+import org.xml.sax.helpers.XMLFilterImpl;
+
+import javax.xml.parsers.DocumentBuilderFactory;
+import javax.xml.parsers.ParserConfigurationException;
+import javax.xml.transform.ErrorListener;
+import javax.xml.transform.SourceLocator;
+import javax.xml.transform.TransformerException;
+import javax.xml.transform.sax.SAXSource;
+import javax.xml.transform.stream.StreamSource;
+import java.io.*;
+import java.math.BigDecimal;
+import java.net.URI;
+import java.util.*;
+
+public class Transformer
+{
+	private XsltExecutable xslt;
+	private Processor proc;
+	private HashMap<String, String> params;
+
+	public Transformer (String stylesheet)
+		throws SaxonApiException
+	{
+		proc = new Processor(false);
+		XsltCompiler comp = proc.newXsltCompiler();
+		xslt = comp.compile(new StreamSource(new StringReader(stylesheet)));
+		params = new HashMap<String, String>();
+	}
+	
+	public void paramClear ()
+	{
+		params.clear();
+	}
+
+	public void paramAdd (String key, String value)
+	{
+		params.put(key, value);
+	}
+
+	public void paramRemove (String key)
+	{
+		params.remove(key);
+	}
+
+	public String paramGet (String key)
+	{
+		return params.get(key);
+	}
+
+	public String transform (String doc, String method)
+		throws SaxonApiException
+	{
+		XdmNode source = proc.newDocumentBuilder().build(
+			new StreamSource(new StringReader(doc))
+			);
+		
+		Serializer out = new Serializer();
+		out.setOutputProperty(Serializer.Property.METHOD, method);
+		StringWriter sw = new StringWriter();
+		out.setOutputWriter(sw);
+		
+		Iterator i = params.keySet().iterator();
+		while (i.hasNext())
+		{
+			String k = i.next();
+			System.out.println(">>> " + k + "\n");
+		}
+
+		XsltTransformer trans = xslt.load();
+		trans.setInitialContextNode(source);
+		trans.setDestination(out);
+		trans.transform();
+		
+		return sw.toString();
+	}
+}
+

_Inline/build/XML/Saxon/XSLT2_52df/cmd.out

+Transformer.java:77: incompatible types
+found   : java.lang.Object
+required: java.lang.String
+			String k = i.next();
+			                 ^
+1 error

_Inline/build/XML/Saxon/XSLT2_61cd/Transformer.java

+
+import net.sf.saxon.s9api.*;
+import org.xml.sax.Attributes;
+import org.xml.sax.ContentHandler;
+import org.xml.sax.InputSource;
+import org.xml.sax.SAXException;
+import org.xml.sax.helpers.XMLFilterImpl;
+import org.w3c.dom.Document;
+import org.xml.sax.Attributes;
+import org.xml.sax.ContentHandler;
+import org.xml.sax.InputSource;
+import org.xml.sax.SAXException;
+import org.xml.sax.helpers.XMLFilterImpl;
+
+import javax.xml.parsers.DocumentBuilderFactory;
+import javax.xml.parsers.ParserConfigurationException;
+import javax.xml.transform.ErrorListener;
+import javax.xml.transform.SourceLocator;
+import javax.xml.transform.TransformerException;
+import javax.xml.transform.sax.SAXSource;
+import javax.xml.transform.stream.StreamSource;
+import java.io.*;
+import java.math.BigDecimal;
+import java.net.URI;
+import java.util.*;
+
+public class Transformer
+{
+	private XsltExecutable xslt;
+	private Processor proc;
+	private HashMap<String, XdmAtomicValue> params;
+
+	public Transformer (String stylesheet)
+		throws SaxonApiException
+	{
+		proc = new Processor(false);
+		XsltCompiler comp = proc.newXsltCompiler();
+		xslt = comp.compile(new StreamSource(new StringReader(stylesheet)));
+		params = new HashMap<String, XdmAtomicValue>();
+	}
+	
+	public void paramAddString (String key, String value)
+	{
+		params.put(key, new XdmAtomicValue(value));
+	}
+
+	public void paramAddLong (String key, long value)
+	{
+		params.put(key, new XdmAtomicValue(value));
+	}
+
+	public void paramAddDecimal (String key, BigDecimal value)
+	{
+		params.put(key, new XdmAtomicValue(value));
+	}
+
+	public void paramAddFloat (String key, float value)
+	{
+		params.put(key, new XdmAtomicValue(value));
+	}
+
+	public void paramAddDouble (String key, double value)
+	{
+		params.put(key, new XdmAtomicValue(value));
+	}
+
+	public void paramAddBoolean (String key, boolean value)
+	{
+		params.put(key, new XdmAtomicValue(value));
+	}
+
+	public void paramAddURI (String key, String value)
+	{
+		params.put(key, new XdmAtomicValue(new URI(value.toString())));
+	}
+
+	public void paramAddQName (String key, String value)
+	{
+		params.put(key, new XdmAtomicValue(new QName(value.toString())));
+	}
+
+	public XdmAtomicValue paramGet (String key)
+	{
+		return params.get(key);
+	}
+
+	public void paramRemove (String key)
+	{
+		params.remove(key);
+	}
+	
+	public void paramClear ()
+	{
+		params.clear();
+	}
+
+	public String transform (String doc, String method)
+		throws SaxonApiException
+	{
+		XdmNode source = proc.newDocumentBuilder().build(
+			new StreamSource(new StringReader(doc))
+			);
+
+		XsltTransformer trans = xslt.load();
+		trans.setInitialContextNode(source);
+
+		Serializer out = new Serializer();
+		out.setOutputProperty(Serializer.Property.METHOD, method);
+		StringWriter sw = new StringWriter();
+		out.setOutputWriter(sw);
+		trans.setDestination(out);
+		
+		Iterator i = params.keySet().iterator();
+		while (i.hasNext())
+		{
+			Object k = i.next();
+			XdmAtomicValue v = params.get(k);
+			
+			trans.setParameter(new QName(k.toString()), v);
+		}
+
+		trans.transform();
+		
+		return sw.toString();
+	}
+}
+

_Inline/build/XML/Saxon/XSLT2_61cd/cmd.out

+Transformer.java:74: unreported exception java.net.URISyntaxException; must be caught or declared to be thrown
+		params.put(key, new XdmAtomicValue(new URI(value.toString())));
+		                                   ^
+1 error

_Inline/build/XML/Saxon/XSLT2_62e5/Transformer.java

+
+import net.sf.saxon.s9api.*;
+import org.xml.sax.Attributes;
+import org.xml.sax.ContentHandler;
+import org.xml.sax.InputSource;
+import org.xml.sax.SAXException;
+import org.xml.sax.helpers.XMLFilterImpl;
+import org.w3c.dom.Document;
+import org.xml.sax.Attributes;
+import org.xml.sax.ContentHandler;
+import org.xml.sax.InputSource;
+import org.xml.sax.SAXException;
+import org.xml.sax.helpers.XMLFilterImpl;
+
+import javax.xml.parsers.DocumentBuilderFactory;
+import javax.xml.parsers.ParserConfigurationException;
+import javax.xml.transform.ErrorListener;
+import javax.xml.transform.SourceLocator;
+import javax.xml.transform.TransformerException;
+import javax.xml.transform.sax.SAXSource;
+import javax.xml.transform.stream.StreamSource;
+import java.io.*;
+import java.math.BigDecimal;
+import java.net.URI;
+import java.util.*;
+
+public class Transformer
+{
+	private XsltExecutable xslt;
+	private Processor proc;
+	private HashMap<String, XdmAtomicValue> params;
+
+	public Transformer (String stylesheet)
+		throws SaxonApiException
+	{
+		proc = new Processor(false);
+		XsltCompiler comp = proc.newXsltCompiler();
+		xslt = comp.compile(new StreamSource(new StringReader(stylesheet)));
+		params = new HashMap<String, XdmAtomicValue>();
+	}
+	
+	public void paramClear ()
+	{
+		params.clear();
+	}
+
+	public void paramAddString (String key, String value)
+	{
+		params.put(key, new XdmAtomicValue(value));
+	}
+
+	public void paramAddLong (String key, long value)
+	{
+		params.put(key, new XdmAtomicValue(value));
+	}
+
+	public void paramAddDecimal (String key, BigDecimal value)
+	{
+		params.put(key, new XdmAtomicValue(value));
+	}
+
+	public void paramAddFloat (String key, float value)
+	{
+		params.put(key, new XdmAtomicValue(value));
+	}
+
+	public void paramAddDouble (String key, double value)
+	{
+		params.put(key, new XdmAtomicValue(value));
+	}
+
+	public void paramAddBoolean (String key, boolean value)
+	{
+		params.put(key, new XdmAtomicValue(value));
+	}
+
+	public void paramAddURI (String key, URI value)
+	{
+		params.put(key, new XdmAtomicValue(value));
+	}
+
+	public void paramAddQName (String key, String value)
+	{
+		params.put(key, new XdmAtomicValue(new QName(value.toString())));
+	}
+
+	public void paramRemove (String key)
+	{
+		params.remove(key);
+	}
+
+	public XdmAtomicValue paramGet (String key)
+	{
+		return params.get(key);
+	}
+
+	public String transform (String doc, String method)
+		throws SaxonApiException
+	{
+		XdmNode source = proc.newDocumentBuilder().build(
+			new StreamSource(new StringReader(doc))
+			);
+
+		XsltTransformer trans = xslt.load();
+		trans.setInitialContextNode(source);
+
+		Serializer out = new Serializer();
+		out.setOutputProperty(Serializer.Property.METHOD, method);
+		StringWriter sw = new StringWriter();
+		out.setOutputWriter(sw);
+		trans.setDestination(out);
+		
+		Iterator i = params.keySet().iterator();
+		while (i.hasNext())
+		{
+			Object k = i.next();
+			Object v = params.get(k);
+			
+			trans.setParameter(new QName(k.toString()), v);
+		}
+
+		trans.transform();
+		
+		return sw.toString();
+	}
+}
+

_Inline/build/XML/Saxon/XSLT2_62e5/cmd.out

+Transformer.java:119: setParameter(net.sf.saxon.s9api.QName,net.sf.saxon.s9api.XdmValue) in net.sf.saxon.s9api.XsltTransformer cannot be applied to (net.sf.saxon.s9api.QName,java.lang.Object)
+			trans.setParameter(new QName(k.toString()), v);
+			     ^
+1 error

_Inline/build/XML/Saxon/XSLT2_7a38/Transformer.java

+
+import net.sf.saxon.s9api.*;
+import org.xml.sax.Attributes;
+import org.xml.sax.ContentHandler;
+import org.xml.sax.InputSource;
+import org.xml.sax.SAXException;
+import org.xml.sax.helpers.XMLFilterImpl;
+import org.w3c.dom.Document;
+import org.xml.sax.Attributes;
+import org.xml.sax.ContentHandler;
+import org.xml.sax.InputSource;
+import org.xml.sax.SAXException;
+import org.xml.sax.helpers.XMLFilterImpl;
+
+import javax.xml.parsers.DocumentBuilderFactory;
+import javax.xml.parsers.ParserConfigurationException;
+import javax.xml.transform.ErrorListener;
+import javax.xml.transform.SourceLocator;
+import javax.xml.transform.TransformerException;
+import javax.xml.transform.sax.SAXSource;
+import javax.xml.transform.stream.StreamSource;
+import java.io.*;
+import java.math.BigDecimal;
+import java.net.URI;
+import java.util.*;
+
+public class Transformer
+{
+	private XsltExecutable xslt;
+	private Processor proc;
+	private HashMap<String, XdmAtomicValue> params;
+
+	public Transformer (String stylesheet)
+		throws SaxonApiException
+	{
+		proc = new Processor(false);
+		XsltCompiler comp = proc.newXsltCompiler();
+		xslt = comp.compile(new StreamSource(new StringReader(stylesheet)));
+		params = new HashMap<String, XdmAtomicValue>();
+	}
+	
+	public void paramClear ()
+	{
+		params.clear();
+	}
+
+	public void paramAddString (String key, String value)
+	{
+		params.put(key, new XdmAtomicValue(value));
+	}
+
+	public void paramAddLong (String key, long value)
+	{
+		params.put(key, new XdmAtomicValue(value));
+	}
+
+	public void paramAddDecimal (String key, decimal value)
+	{
+		params.put(key, new XdmAtomicValue(value));
+	}
+
+	public void paramAddFloat (String key, float value)
+	{
+		params.put(key, new XdmAtomicValue(value));
+	}
+
+	public void paramAddDouble (String key, double value)
+	{
+		params.put(key, new XdmAtomicValue(value));
+	}
+
+	public void paramAddBoolean (String key, bool value)
+	{
+		params.put(key, new XdmAtomicValue(value));
+	}
+
+	public void paramAddURI (String key, URI value)
+	{
+		params.put(key, new XdmAtomicValue(value));
+	}
+
+	public void paramAddQName (String key, String value)
+	{
+		params.put(key, new XdmAtomicValue(new QName(value.toString())));
+	}
+
+	public void paramRemove (String key)
+	{
+		params.remove(key);
+	}
+
+	public XdmAtomicValue paramGet (String key)
+	{
+		return params.get(key);
+	}
+
+	public String transform (String doc, String method)
+		throws SaxonApiException
+	{
+		XdmNode source = proc.newDocumentBuilder().build(
+			new StreamSource(new StringReader(doc))
+			);
+
+		XsltTransformer trans = xslt.load();
+		trans.setInitialContextNode(source);
+
+		Serializer out = new Serializer();
+		out.setOutputProperty(Serializer.Property.METHOD, method);
+		StringWriter sw = new StringWriter();
+		out.setOutputWriter(sw);
+		trans.setDestination(out);
+		
+		Iterator i = params.keySet().iterator();
+		while (i.hasNext())
+		{
+			Object k = i.next();
+			Object v = params.get(k);
+			
+			trans.setParameter(new QName(k.toString()), v);
+		}
+
+		trans.transform();
+		
+		return sw.toString();
+	}
+}
+

_Inline/build/XML/Saxon/XSLT2_7a38/cmd.out

+Transformer.java:57: cannot find symbol
+symbol  : class decimal
+location: class Transformer
+	public void paramAddDecimal (String key, decimal value)
+	                                         ^
+Transformer.java:72: cannot find symbol
+symbol  : class bool
+location: class Transformer
+	public void paramAddBoolean (String key, bool value)
+	                                         ^
+Transformer.java:59: internal error; cannot instantiate XdmAtomicValue(boolean) at net.sf.saxon.s9api.XdmAtomicValue to ()
+		params.put(key, new XdmAtomicValue(value));
+		                ^
+Transformer.java:74: internal error; cannot instantiate XdmAtomicValue(boolean) at net.sf.saxon.s9api.XdmAtomicValue to ()
+		params.put(key, new XdmAtomicValue(value));
+		                ^
+Transformer.java:119: setParameter(net.sf.saxon.s9api.QName,net.sf.saxon.s9api.XdmValue) in net.sf.saxon.s9api.XsltTransformer cannot be applied to (net.sf.saxon.s9api.QName,java.lang.Object)
+			trans.setParameter(new QName(k.toString()), v);
+			     ^
+5 errors

_Inline/build/XML/Saxon/XSLT2_9936/Transformer.java

+
+import net.sf.saxon.s9api.*;
+import org.xml.sax.Attributes;
+import org.xml.sax.ContentHandler;
+import org.xml.sax.InputSource;
+import org.xml.sax.SAXException;
+import org.xml.sax.helpers.XMLFilterImpl;
+import org.w3c.dom.Document;
+import org.xml.sax.Attributes;
+import org.xml.sax.ContentHandler;
+import org.xml.sax.InputSource;
+import org.xml.sax.SAXException;
+import org.xml.sax.helpers.XMLFilterImpl;
+
+import javax.xml.parsers.DocumentBuilderFactory;
+import javax.xml.parsers.ParserConfigurationException;
+import javax.xml.transform.ErrorListener;
+import javax.xml.transform.SourceLocator;
+import javax.xml.transform.TransformerException;
+import javax.xml.transform.sax.SAXSource;
+import javax.xml.transform.stream.StreamSource;
+import java.io.*;
+import java.math.BigDecimal;
+import java.net.URI;
+import java.util.*;
+
+public class Transformer
+{
+	private XsltExecutable xslt;
+	private Processor proc;
+	private HashMap<String, XdmAtomicValue> params;
+
+	public Transformer (String stylesheet)
+		throws SaxonApiException
+	{
+		proc = new Processor(false);
+		XsltCompiler comp = proc.newXsltCompiler();
+		xslt = comp.compile(new StreamSource(new StringReader(stylesheet)));
+		params = new HashMap<String, XdmAtomicValue>();
+	}
+	
+	public void paramClear ()
+	{
+		params.clear();
+	}
+
+	public void paramAddString (String key, String value)
+	{
+		params.put(key, new XdmAtomicValue(value));
+	}
+
+	public void paramAddLong (String key, long value)
+	{
+		params.put(key, new XdmAtomicValue(value));
+	}
+
+	public void paramAddDecimal (String key, decimal value)
+	{
+		params.put(key, new XdmAtomicValue(value));
+	}
+
+	public void paramAddFloat (String key, float value)
+	{
+		params.put(key, new XdmAtomicValue(value));
+	}
+
+	public void paramAddDouble (String key, double value)
+	{
+		params.put(key, new XdmAtomicValue(value));
+	}
+
+	public void paramAddBoolean (String key, bool value)
+	{
+		params.put(key, new XdmAtomicValue(value));
+	}
+
+	public void paramAddURI (String key, System.URI value)
+	{
+		params.put(key, new XdmAtomicValue(value));
+	}
+
+	public void paramAddQName (String key, String value)
+	{
+		params.put(key, new XdmAtomicValue(new QName(value.toString())));
+	}
+
+	public void paramRemove (String key)
+	{
+		params.remove(key);
+	}
+
+	public XdmAtomicValue paramGet (String key)
+	{
+		return params.get(key);
+	}
+
+	public String transform (String doc, String method)
+		throws SaxonApiException
+	{
+		XdmNode source = proc.newDocumentBuilder().build(
+			new StreamSource(new StringReader(doc))
+			);
+
+		XsltTransformer trans = xslt.load();
+		trans.setInitialContextNode(source);
+
+		Serializer out = new Serializer();
+		out.setOutputProperty(Serializer.Property.METHOD, method);
+		StringWriter sw = new StringWriter();
+		out.setOutputWriter(sw);
+		trans.setDestination(out);
+		
+		Iterator i = params.keySet().iterator();
+		while (i.hasNext())
+		{
+			Object k = i.next();
+			Object v = params.get(k);
+			
+			trans.setParameter(new QName(k.toString()), v);
+		}
+
+		trans.transform();
+		
+		return sw.toString();
+	}
+}
+

_Inline/build/XML/Saxon/XSLT2_9936/cmd.out

+Transformer.java:57: cannot find symbol
+symbol  : class decimal
+location: class Transformer
+	public void paramAddDecimal (String key, decimal value)
+	                                         ^
+Transformer.java:72: cannot find symbol
+symbol  : class bool
+location: class Transformer
+	public void paramAddBoolean (String key, bool value)
+	                                         ^
+Transformer.java:77: cannot find symbol
+symbol  : class URI
+location: class java.lang.System
+	public void paramAddURI (String key, System.URI value)
+	                                           ^
+Transformer.java:59: internal error; cannot instantiate XdmAtomicValue(boolean) at net.sf.saxon.s9api.XdmAtomicValue to ()
+		params.put(key, new XdmAtomicValue(value));
+		                ^
+Transformer.java:74: internal error; cannot instantiate XdmAtomicValue(boolean) at net.sf.saxon.s9api.XdmAtomicValue to ()
+		params.put(key, new XdmAtomicValue(value));
+		                ^
+Transformer.java:79: internal error; cannot instantiate XdmAtomicValue(boolean) at net.sf.saxon.s9api.XdmAtomicValue to ()
+		params.put(key, new XdmAtomicValue(value));
+		                ^
+Transformer.java:119: setParameter(net.sf.saxon.s9api.QName,net.sf.saxon.s9api.XdmValue) in net.sf.saxon.s9api.XsltTransformer cannot be applied to (net.sf.saxon.s9api.QName,java.lang.Object)
+			trans.setParameter(new QName(k.toString()), v);
+			     ^
+7 errors

_Inline/build/XML/Saxon/XSLT2_9c44/Transformer.java

+
+import net.sf.saxon.s9api.*;
+import org.xml.sax.Attributes;
+import org.xml.sax.ContentHandler;
+import org.xml.sax.InputSource;
+import org.xml.sax.SAXException;
+import org.xml.sax.helpers.XMLFilterImpl;
+import org.w3c.dom.Document;
+import org.xml.sax.Attributes;
+import org.xml.sax.ContentHandler;
+import org.xml.sax.InputSource;
+import org.xml.sax.SAXException;
+import org.xml.sax.helpers.XMLFilterImpl;
+
+import javax.xml.parsers.DocumentBuilderFactory;
+import javax.xml.parsers.ParserConfigurationException;
+import javax.xml.transform.ErrorListener;
+import javax.xml.transform.SourceLocator;
+import javax.xml.transform.TransformerException;
+import javax.xml.transform.sax.SAXSource;
+import javax.xml.transform.stream.StreamSource;
+import java.io.*;
+import java.math.BigDecimal;
+import java.net.URI;
+import java.util.*;
+
+public class Transformer
+{
+	private XsltExecutable xslt;
+	private Processor proc;
+	private HashMap<String, XdmAtomicValue> params;
+
+	public Transformer (String stylesheet)
+		throws SaxonApiException
+	{
+		proc = new Processor(false);
+		XsltCompiler comp = proc.newXsltCompiler();
+		xslt = comp.compile(new StreamSource(new StringReader(stylesheet)));
+		params = new HashMap<String, XdmAtomicValue>();
+	}
+	
+	public void paramAddString (String key, String value)
+	{
+		params.put(key, new XdmAtomicValue(value));
+	}
+
+	public void paramAddLong (String key, long value)
+	{
+		params.put(key, new XdmAtomicValue(value));
+	}
+
+	public void paramAddDecimal (String key, BigDecimal value)
+	{
+		params.put(key, new XdmAtomicValue(value));
+	}
+
+	public void paramAddFloat (String key, float value)
+	{
+		params.put(key, new XdmAtomicValue(value));
+	}
+
+	public void paramAddDouble (String key, double value)
+	{
+		params.put(key, new XdmAtomicValue(value));
+	}
+
+	public void paramAddBoolean (String key, boolean value)
+	{
+		params.put(key, new XdmAtomicValue(value));
+	}
+
+	public void paramAddURI (String key, String value)
+	{
+		params.put(key, new XdmAtomicValue(new URI(value)));
+	}
+
+	public void paramAddQName (String key, String value)
+	{
+		params.put(key, new XdmAtomicValue(new QName(value)));
+	}
+
+	public XdmAtomicValue paramGet (String key)
+	{
+		return params.get(key);
+	}
+
+	public void paramRemove (String key)
+	{
+		params.remove(key);
+	}
+	
+	public void paramClear ()
+	{
+		params.clear();
+	}
+
+	public String transform (String doc, String method)
+		throws SaxonApiException
+	{
+		XdmNode source = proc.newDocumentBuilder().build(
+			new StreamSource(new StringReader(doc))
+			);
+
+		XsltTransformer trans = xslt.load();
+		trans.setInitialContextNode(source);
+
+		Serializer out = new Serializer();
+		out.setOutputProperty(Serializer.Property.METHOD, method);
+		StringWriter sw = new StringWriter();
+		out.setOutputWriter(sw);
+		trans.setDestination(out);
+		
+		Iterator i = params.keySet().iterator();
+		while (i.hasNext())
+		{
+			Object k = i.next();
+			XdmAtomicValue v = params.get(k);
+			
+			trans.setParameter(new QName(k.toString()), v);
+		}
+
+		trans.transform();
+		
+		return sw.toString();
+	}
+}
+

_Inline/build/XML/Saxon/XSLT2_9c44/cmd.out

+Transformer.java:74: unreported exception java.net.URISyntaxException; must be caught or declared to be thrown
+		params.put(key, new XdmAtomicValue(new URI(value)));
+		                                   ^
+1 error

_Inline/build/XML/Saxon/XSLT2_9d4e/Transformer.java

+
+import net.sf.saxon.s9api.*;
+import org.xml.sax.Attributes;
+import org.xml.sax.ContentHandler;
+import org.xml.sax.InputSource;
+import org.xml.sax.SAXException;
+import org.xml.sax.helpers.XMLFilterImpl;
+import org.w3c.dom.Document;
+import org.xml.sax.Attributes;
+import org.xml.sax.ContentHandler;
+import org.xml.sax.InputSource;
+import org.xml.sax.SAXException;
+import org.xml.sax.helpers.XMLFilterImpl;
+
+import javax.xml.parsers.DocumentBuilderFactory;
+import javax.xml.parsers.ParserConfigurationException;
+import javax.xml.transform.ErrorListener;
+import javax.xml.transform.SourceLocator;
+import javax.xml.transform.TransformerException;
+import javax.xml.transform.sax.SAXSource;
+import javax.xml.transform.stream.StreamSource;
+import java.io.*;
+import java.math.BigDecimal;
+import java.net.URI;
+import java.util.*;
+
+public class Transformer
+{
+	private XsltExecutable xslt;
+	private Processor proc;
+	private HashMap<String, String> params;
+
+	public Transformer (String stylesheet)
+		throws SaxonApiException
+	{
+		proc = new Processor(false);
+		XsltCompiler comp = proc.newXsltCompiler();
+		xslt = comp.compile(new StreamSource(new StringReader(stylesheet)));
+		params = new HashMap<String, String>();
+	}
+	
+	public void paramClear ()
+	{
+		params.clear();
+	}
+
+	public void paramAdd (String key, String value)
+	{
+		params.put(key, value);
+	}
+
+	public String paramRemove (String key)
+	{
+		params.remove(key);
+	}
+
+	public String paramGet (String key)
+	{
+		params.get(key);
+	}
+
+	public String transform (String doc, String method)
+		throws SaxonApiException
+	{
+		XdmNode source = proc.newDocumentBuilder().build(
+			new StreamSource(new StringReader(doc))
+			);
+		
+		Serializer out = new Serializer();
+		out.setOutputProperty(Serializer.Property.METHOD, method);
+		StringWriter sw = new StringWriter();
+		out.setOutputWriter(sw);
+
+		XsltTransformer trans = xslt.load();
+		trans.setInitialContextNode(source);
+		trans.setDestination(out);
+		trans.transform();
+		
+		return sw.toString();
+	}
+}
+

_Inline/build/XML/Saxon/XSLT2_9d4e/cmd.out

+Transformer.java:55: missing return statement
+	}
+	^
+Transformer.java:60: missing return statement
+	}
+	^
+2 errors

_Inline/build/XML/Saxon/XSLT2_a233/Transformer.java

+
+import net.sf.saxon.s9api.*;
+import org.xml.sax.Attributes;
+import org.xml.sax.ContentHandler;
+import org.xml.sax.InputSource;
+import org.xml.sax.SAXException;
+import org.xml.sax.helpers.XMLFilterImpl;
+import org.w3c.dom.Document;
+import org.xml.sax.Attributes;
+import org.xml.sax.ContentHandler;
+import org.xml.sax.InputSource;
+import org.xml.sax.SAXException;
+import org.xml.sax.helpers.XMLFilterImpl;
+
+import javax.xml.parsers.DocumentBuilderFactory;
+import javax.xml.parsers.ParserConfigurationException;
+import javax.xml.transform.ErrorListener;
+import javax.xml.transform.SourceLocator;
+import javax.xml.transform.TransformerException;
+import javax.xml.transform.sax.SAXSource;
+import javax.xml.transform.stream.StreamSource;
+import java.io.*;
+import java.math.BigDecimal;
+import java.net.URI;
+import java.util.*;
+
+public class Transformer
+{
+	private XsltExecutable xslt;
+	private Processor proc;
+	private HashMap<String, String> params;
+
+	public Transformer (String stylesheet)
+		throws SaxonApiException
+	{
+		proc = new Processor(false);
+		XsltCompiler comp = proc.newXsltCompiler();
+		xslt = comp.compile(new StreamSource(new StringReader(stylesheet)));
+		params = new HashMap<String, String>();
+	}
+	
+	public void paramClear ()
+	{
+		params.clear();
+	}
+
+	public void paramAddString (String key, String value)
+	{
+		params.put(key, new XdmAtomicValue(value));
+	}
+
+	public void paramAddLong (String key, long value)
+	{
+		params.put(key, new XdmAtomicValue(value));
+	}
+
+	public void paramAddDecimal (String key, decimal value)
+	{
+		params.put(key, new XdmAtomicValue(value));
+	}
+
+	public void paramAddFloat (String key, float value)
+	{
+		params.put(key, new XdmAtomicValue(value));
+	}
+
+	public void paramAddDouble (String key, double value)
+	{
+		params.put(key, new XdmAtomicValue(value));
+	}
+
+	public void paramAddBoolean (String key, bool value)
+	{
+		params.put(key, new XdmAtomicValue(value));
+	}
+
+	public void paramAddURI (String key, System.URI value)
+	{
+		params.put(key, new XdmAtomicValue(value));
+	}
+
+	public void paramAddQName (String key, String value)
+	{
+		params.put(key, new XdmAtomicValue(new QName(value.toString())));
+	}
+
+	public void paramRemove (String key)
+	{
+		params.remove(key);
+	}
+
+	public String paramGet (String key)
+	{
+		return params.get(key);
+	}
+
+	public String transform (String doc, String method)
+		throws SaxonApiException
+	{
+		XdmNode source = proc.newDocumentBuilder().build(
+			new StreamSource(new StringReader(doc))
+			);
+
+		XsltTransformer trans = xslt.load();
+		trans.setInitialContextNode(source);
+
+		Serializer out = new Serializer();
+		out.setOutputProperty(Serializer.Property.METHOD, method);
+		StringWriter sw = new StringWriter();
+		out.setOutputWriter(sw);
+		trans.setDestination(out);
+		
+		Iterator i = params.keySet().iterator();
+		while (i.hasNext())
+		{
+			Object k = i.next();
+			Object v = params.get(k);
+			
+			trans.setParameter(new QName(k.toString()), v);
+		}
+
+		trans.transform();
+		
+		return sw.toString();
+	}
+}
+

_Inline/build/XML/Saxon/XSLT2_a233/cmd.out

+Transformer.java:57: cannot find symbol
+symbol  : class decimal
+location: class Transformer
+	public void paramAddDecimal (String key, decimal value)
+	                                         ^
+Transformer.java:72: cannot find symbol
+symbol  : class bool
+location: class Transformer
+	public void paramAddBoolean (String key, bool value)
+	                                         ^
+Transformer.java:77: cannot find symbol
+symbol  : class URI
+location: class java.lang.System
+	public void paramAddURI (String key, System.URI value)
+	                                           ^
+Transformer.java:49: cannot find symbol
+symbol  : method put(java.lang.String,net.sf.saxon.s9api.XdmAtomicValue)
+location: class java.util.HashMap<java.lang.String,java.lang.String>
+		params.put(key, new XdmAtomicValue(value));
+		      ^
+Transformer.java:54: cannot find symbol
+symbol  : method put(java.lang.String,net.sf.saxon.s9api.XdmAtomicValue)
+location: class java.util.HashMap<java.lang.String,java.lang.String>
+		params.put(key, new XdmAtomicValue(value));
+		      ^
+Transformer.java:59: internal error; cannot instantiate XdmAtomicValue(boolean) at net.sf.saxon.s9api.XdmAtomicValue to ()
+		params.put(key, new XdmAtomicValue(value));
+		                ^
+Transformer.java:59: cannot find symbol
+symbol  : method put(java.lang.String,net.sf.saxon.s9api.XdmAtomicValue)
+location: class java.util.HashMap<java.lang.String,java.lang.String>
+		params.put(key, new XdmAtomicValue(value));
+		      ^
+Transformer.java:64: cannot find symbol
+symbol  : method put(java.lang.String,net.sf.saxon.s9api.XdmAtomicValue)
+location: class java.util.HashMap<java.lang.String,java.lang.String>
+		params.put(key, new XdmAtomicValue(value));
+		      ^
+Transformer.java:69: cannot find symbol
+symbol  : method put(java.lang.String,net.sf.saxon.s9api.XdmAtomicValue)
+location: class java.util.HashMap<java.lang.String,java.lang.String>
+		params.put(key, new XdmAtomicValue(value));
+		      ^
+Transformer.java:74: internal error; cannot instantiate XdmAtomicValue(boolean) at net.sf.saxon.s9api.XdmAtomicValue to ()
+		params.put(key, new XdmAtomicValue(value));
+		                ^
+Transformer.java:74: cannot find symbol
+symbol  : method put(java.lang.String,net.sf.saxon.s9api.XdmAtomicValue)
+location: class java.util.HashMap<java.lang.String,java.lang.String>
+		params.put(key, new XdmAtomicValue(value));
+		      ^
+Transformer.java:79: internal error; cannot instantiate XdmAtomicValue(boolean) at net.sf.saxon.s9api.XdmAtomicValue to ()
+		params.put(key, new XdmAtomicValue(value));
+		                ^
+Transformer.java:79: cannot find symbol
+symbol  : method put(java.lang.String,net.sf.saxon.s9api.XdmAtomicValue)
+location: class java.util.HashMap<java.lang.String,java.lang.String>
+		params.put(key, new XdmAtomicValue(value));
+		      ^
+Transformer.java:84: cannot find symbol
+symbol  : method put(java.lang.String,net.sf.saxon.s9api.XdmAtomicValue)
+location: class java.util.HashMap<java.lang.String,java.lang.String>
+		params.put(key, new XdmAtomicValue(new QName(value.toString())));
+		      ^
+Transformer.java:119: setParameter(net.sf.saxon.s9api.QName,net.sf.saxon.s9api.XdmValue) in net.sf.saxon.s9api.XsltTransformer cannot be applied to (net.sf.saxon.s9api.QName,java.lang.Object)
+			trans.setParameter(new QName(k.toString()), v);
+			     ^
+15 errors

_Inline/build/XML/Saxon/XSLT2_a389/Transformer.java

+
+import net.sf.saxon.s9api.*;
+import org.xml.sax.Attributes;
+import org.xml.sax.ContentHandler;
+import org.xml.sax.InputSource;
+import org.xml.sax.SAXException;
+import org.xml.sax.helpers.XMLFilterImpl;
+import org.w3c.dom.Document;
+import org.xml.sax.Attributes;
+import org.xml.sax.ContentHandler;
+import org.xml.sax.InputSource;
+import org.xml.sax.SAXException;
+import org.xml.sax.helpers.XMLFilterImpl;
+
+import javax.xml.parsers.DocumentBuilderFactory;
+import javax.xml.parsers.ParserConfigurationException;
+import javax.xml.transform.ErrorListener;
+import javax.xml.transform.SourceLocator;
+import javax.xml.transform.TransformerException;
+import javax.xml.transform.sax.SAXSource;
+import javax.xml.transform.stream.StreamSource;
+import java.io.*;
+import java.math.BigDecimal;
+import java.net.URI;
+import java.util.*;
+
+public class Transformer
+{
+	private XsltExecutable xslt;
+	private Processor proc;
+	private HashMap<String, XdmAtomicValue> params;
+
+	public Transformer (String stylesheet)
+		throws SaxonApiException
+	{
+		proc = new Processor(false);