diff --git a/html/impl.html b/html/impl.html index 0fd46a0c1c04b6cbbdddb1444df39d33b93318b3..749ae0faaec6296e395441b3d61881df80d267e6 100644 --- a/html/impl.html +++ b/html/impl.html @@ -496,6 +496,21 @@ Reykjavik (IS), pp4178-4183, 2014 </small> </dd> +<dt>[<a href="">DESIM</a>]</dt> +<dd> +The DESIM system (Descriptive to Executable Simularion modeling), developed at MITRE, is a decision support system +which can crowdsource elementary opinions in order to reach a +decision. In order to accomodate multiple models, it has been extended +to use the Alignment API and server to keep track of correspondences +between models. +<!--br /><small> +Mark Pfaff, personal communication, 2016 +https://www.researchgate.net/profile/Mark_Pfaff2 +No publication mentioning this unfortunately. +, <a href=""></a>, +</small--> +</dd> + </dl></p> diff --git a/src/fr/inrialpes/exmo/align/impl/BasicAlignment.java b/src/fr/inrialpes/exmo/align/impl/BasicAlignment.java index 067aa9df3b900e884dded2ff433aea78afae093c..3c6b767e0537041211073f967dd1c9dd6e2b23a7 100644 --- a/src/fr/inrialpes/exmo/align/impl/BasicAlignment.java +++ b/src/fr/inrialpes/exmo/align/impl/BasicAlignment.java @@ -1,7 +1,7 @@ /* * $Id$ * - * Copyright (C) INRIA, 2003-2011, 2013-2015 + * Copyright (C) INRIA, 2003-2011, 2013-2016 * Copyright (C) CNR Pisa, 2005 * * This program is free software; you can redistribute it and/or modify diff --git a/src/fr/inrialpes/exmo/align/impl/renderer/COWLMappingRendererVisitor.java b/src/fr/inrialpes/exmo/align/impl/renderer/COWLMappingRendererVisitor.java index 8b0ead2329f2ba7a11b21138da6675193730d8b7..eeaea12fc595163c748e50827657028640706c83 100644 --- a/src/fr/inrialpes/exmo/align/impl/renderer/COWLMappingRendererVisitor.java +++ b/src/fr/inrialpes/exmo/align/impl/renderer/COWLMappingRendererVisitor.java @@ -1,7 +1,7 @@ /* * $Id$ * - * Copyright (C) INRIA, 2003-2004, 2007-2010, 2012-2015 + * Copyright (C) INRIA, 2003-2004, 2007-2010, 2012-2016 * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by @@ -58,7 +58,9 @@ public class COWLMappingRendererVisitor extends IndentedRendererVisitor implemen super( writer ); } - public void init( Properties p ) {} + public void init( Properties p ) { + super.init( p ); + } public void visit( Alignment align ) throws AlignmentException { if ( subsumedInvocableMethod( this, align, Alignment.class ) ) return; diff --git a/src/fr/inrialpes/exmo/align/impl/renderer/GraphPatternRendererVisitor.java b/src/fr/inrialpes/exmo/align/impl/renderer/GraphPatternRendererVisitor.java index 6bb70767f7c2e9960399ad2620eac844ee037abe..10357b0e188fb11ff34a9838d0ec6b8e024a6a05 100644 --- a/src/fr/inrialpes/exmo/align/impl/renderer/GraphPatternRendererVisitor.java +++ b/src/fr/inrialpes/exmo/align/impl/renderer/GraphPatternRendererVisitor.java @@ -1,7 +1,7 @@ /* * $Id$ * - * Copyright (C) INRIA, 2012-2015 + * Copyright (C) INRIA, 2012-2016 * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by @@ -24,6 +24,7 @@ import java.io.FileWriter; import java.io.IOException; import java.io.PrintWriter; import java.net.URI; +import java.util.Properties; import java.util.ArrayList; import java.util.HashSet; import java.util.Hashtable; @@ -122,7 +123,8 @@ public abstract class GraphPatternRendererVisitor extends IndentedRendererVisito super( writer ); } - protected void init() { + protected void init( Properties p ) { + super.init( p ); listBGP = new ArrayList<String>(); subjectsRestriction = new HashSet<String>(); objectsRestriction = new HashSet<String>(); diff --git a/src/fr/inrialpes/exmo/align/impl/renderer/HTMLMetadataRendererVisitor.java b/src/fr/inrialpes/exmo/align/impl/renderer/HTMLMetadataRendererVisitor.java index f77504fc2cc64d4ace2228de1c2e8f37ff4d989a..c4a0940cf8452e624c8a526e48bb28af8ba5b1a6 100644 --- a/src/fr/inrialpes/exmo/align/impl/renderer/HTMLMetadataRendererVisitor.java +++ b/src/fr/inrialpes/exmo/align/impl/renderer/HTMLMetadataRendererVisitor.java @@ -1,7 +1,7 @@ /* * $Id$ * - * Copyright (C) INRIA, 2006-2010, 2012-2015 + * Copyright (C) INRIA, 2006-2010, 2012-2016 * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by @@ -63,6 +63,7 @@ public class HTMLMetadataRendererVisitor extends IndentedRendererVisitor impleme } public void init( Properties p ) { + super.init( p ); if ( p.getProperty( "embedded" ) != null && !p.getProperty( "embedded" ).equals("") ) embedded = true; }; @@ -105,7 +106,7 @@ public class HTMLMetadataRendererVisitor extends IndentedRendererVisitor impleme //extensionString += " <"+tag+">"+((String[])ext)[2]+"</"+tag+">\n"; } if ( embedded == false ) { - indentedOutputln("<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"no\"?>"); + indentedOutputln("<?xml version=\"1.0\" encoding=\""+ENC+"\" standalone=\"no\"?>"); indentedOutputln("<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML+RDFa 1.0//EN\" \"http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd\">"); } indentedOutput("<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"en\""); diff --git a/src/fr/inrialpes/exmo/align/impl/renderer/IndentedRendererVisitor.java b/src/fr/inrialpes/exmo/align/impl/renderer/IndentedRendererVisitor.java index 35976cd5cbea424ad6e896eff07cce91aa404981..fc4a1d1c0501e76d6c3b8abbf1c83ac6bf85d53f 100644 --- a/src/fr/inrialpes/exmo/align/impl/renderer/IndentedRendererVisitor.java +++ b/src/fr/inrialpes/exmo/align/impl/renderer/IndentedRendererVisitor.java @@ -1,7 +1,7 @@ /* * $Id$ * - * Copyright (C) INRIA, 2010, 2012, 2015 + * Copyright (C) INRIA, 2010, 2012, 2015-2016 * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by @@ -22,6 +22,8 @@ package fr.inrialpes.exmo.align.impl.renderer; import java.io.PrintWriter; +import java.util.Properties; + /** * Structure for indented rendering * @@ -37,6 +39,8 @@ public class IndentedRendererVisitor extends GenericReflectiveVisitor { protected String NL = ""; + protected String ENC = "utf-8"; + /** String for the pretty linebreak. **/ protected String linePrefix = ""; @@ -55,6 +59,22 @@ public class IndentedRendererVisitor extends GenericReflectiveVisitor { NL = nl; } + public void setEncoding( String encoding) { + ENC = encoding; + } + + protected void init( Properties p ) { + if (p.getProperty("indent") != null) { + setIndentString( p.getProperty("indent") ); + } + if (p.getProperty("newline") != null) { + setNewLineString( p.getProperty("newline") ); + } + if (p.getProperty("encoding") != null) { + setEncoding( p.getProperty("encoding") ); + } + } + // =================================================================== // pretty printing management // JE: I THINK THAT THIS IS CONVENIENT BUT INDUCES A SERIOUS LAG IN diff --git a/src/fr/inrialpes/exmo/align/impl/renderer/JSONRendererVisitor.java b/src/fr/inrialpes/exmo/align/impl/renderer/JSONRendererVisitor.java index 5988932b48259957d58357b8149eddb4a8f1741b..a12e101daac999bc1b6e5ba089c1c5176b9d11d9 100644 --- a/src/fr/inrialpes/exmo/align/impl/renderer/JSONRendererVisitor.java +++ b/src/fr/inrialpes/exmo/align/impl/renderer/JSONRendererVisitor.java @@ -1,7 +1,7 @@ /* * $Id$ * - * Copyright (C) INRIA, 2012, 2014-2015 + * Copyright (C) INRIA, 2012, 2014-2016 * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by @@ -105,13 +105,8 @@ public class JSONRendererVisitor extends IndentedRendererVisitor implements Alig super(writer); } - public void init(Properties p) { - if (p.getProperty("indent") != null) { - INDENT = p.getProperty("indent"); - } - if (p.getProperty("newline") != null) { - NL = p.getProperty("newline"); - } + public void init( Properties p ) { + super.init( p ); } public void visit(Alignment align) throws AlignmentException { diff --git a/src/fr/inrialpes/exmo/align/impl/renderer/OWLAxiomsRendererVisitor.java b/src/fr/inrialpes/exmo/align/impl/renderer/OWLAxiomsRendererVisitor.java index 72919a149dc6fe43203b4dc97811a2a5007418d7..982bb457ad11bf21fb611954d80d70cc28853c1e 100644 --- a/src/fr/inrialpes/exmo/align/impl/renderer/OWLAxiomsRendererVisitor.java +++ b/src/fr/inrialpes/exmo/align/impl/renderer/OWLAxiomsRendererVisitor.java @@ -1,7 +1,7 @@ /* * $Id$ * - * Copyright (C) INRIA, 2003-2004, 2007-2015 + * Copyright (C) INRIA, 2003-2004, 2007-2016 * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by @@ -108,6 +108,7 @@ public class OWLAxiomsRendererVisitor extends IndentedRendererVisitor implements } public void init( Properties p ) { + super.init( p ); if ( p.getProperty("heterogeneous") != null ) heterogeneous = true; }; diff --git a/src/fr/inrialpes/exmo/align/impl/renderer/RDFRendererVisitor.java b/src/fr/inrialpes/exmo/align/impl/renderer/RDFRendererVisitor.java index d7be080207fdb0f4f0b4055f4a5548042b94b301..ab444c086ea6bb3199c79de5e63249e5e7888f01 100644 --- a/src/fr/inrialpes/exmo/align/impl/renderer/RDFRendererVisitor.java +++ b/src/fr/inrialpes/exmo/align/impl/renderer/RDFRendererVisitor.java @@ -106,16 +106,11 @@ public class RDFRendererVisitor extends IndentedRendererVisitor implements Align } public void init(Properties p) { + super.init( p ); if (p.getProperty("embedded") != null && !p.getProperty("embedded").equals("")) { embedded = true; } - if (p.getProperty("indent") != null) { - INDENT = p.getProperty("indent"); - } - if (p.getProperty("newline") != null) { - NL = p.getProperty("newline"); - } } public void visit(Alignment align) throws AlignmentException { @@ -149,7 +144,7 @@ public class RDFRendererVisitor extends IndentedRendererVisitor implements Align extensionString += INDENT + "<" + tag + ">" + ext[2] + "</" + tag + ">" + NL; } if (embedded == false) { - outputln("<?xml version='1.0' encoding='utf-8' standalone='no'?>"); + outputln("<?xml version='1.0' encoding='"+ENC+"' standalone='no'?>"); } output("<" + SyntaxElement.RDF.print(DEF) + " xmlns='" + Namespace.ALIGNMENT.prefix + "'"); // JE2009: (1) I must use xml:base diff --git a/src/fr/inrialpes/exmo/align/impl/renderer/SEKTMappingRendererVisitor.java b/src/fr/inrialpes/exmo/align/impl/renderer/SEKTMappingRendererVisitor.java index 1034c7a5ae8413db384e325ecd66c5e740d8e2b3..1b880136fa381d20f12b8239e49a694c1d2cf4e3 100644 --- a/src/fr/inrialpes/exmo/align/impl/renderer/SEKTMappingRendererVisitor.java +++ b/src/fr/inrialpes/exmo/align/impl/renderer/SEKTMappingRendererVisitor.java @@ -1,7 +1,7 @@ /* * $Id$ * - * Copyright (C) INRIA, 2003-2005, 2007-2010, 2012-2015 + * Copyright (C) INRIA, 2003-2005, 2007-2010, 2012-2016 * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by @@ -62,7 +62,9 @@ public class SEKTMappingRendererVisitor extends IndentedRendererVisitor implemen generator = new Random(); } - public void init( Properties p ) {}; + public void init( Properties p ) { + super.init( p ); + }; public void visit( Alignment align ) throws AlignmentException { if ( subsumedInvocableMethod( this, align, Alignment.class ) ) return; diff --git a/src/fr/inrialpes/exmo/align/impl/renderer/SKOSRendererVisitor.java b/src/fr/inrialpes/exmo/align/impl/renderer/SKOSRendererVisitor.java index 7539390ad12cbd4355d2e889845c5bdd02aa8fe4..078cad01ea301fa66b66c720900512bc0f9f3715 100644 --- a/src/fr/inrialpes/exmo/align/impl/renderer/SKOSRendererVisitor.java +++ b/src/fr/inrialpes/exmo/align/impl/renderer/SKOSRendererVisitor.java @@ -1,7 +1,7 @@ /* * $Id$ * - * Copyright (C) INRIA, 2003-2004, 2006-2010, 2012, 2014-2015 + * Copyright (C) INRIA, 2003-2004, 2006-2010, 2012, 2014-2016 * Copyright (C) Quentin Reul, 2008 * * This program is free software; you can redistribute it and/or modify @@ -61,6 +61,7 @@ public class SKOSRendererVisitor extends IndentedRendererVisitor implements Alig } public void init( Properties p ) { + super.init( p ); if ( p.getProperty( "embedded" ) != null && !p.getProperty( "embedded" ).equals("") ) embedded = true; if ( p.getProperty( "pre2008" ) != null @@ -76,7 +77,7 @@ public class SKOSRendererVisitor extends IndentedRendererVisitor implements Alig onto2 = ((ObjectAlignment)align).getOntologyObject2(); } if ( embedded == false ) { - indentedOutputln("<?xml version='1.0' encoding='utf-8' standalone='no'?>"); + indentedOutputln("<?xml version='1.0' encoding='"+ENC+"' standalone='no'?>"); } indentedOutputln("<rdf:RDF"); increaseIndent(); diff --git a/src/fr/inrialpes/exmo/align/impl/renderer/SPARQLConstructRendererVisitor.java b/src/fr/inrialpes/exmo/align/impl/renderer/SPARQLConstructRendererVisitor.java index 8af873809aca7a21d8bf3882181e96fce38af7cc..9b77bcea0a19c9d71ffb5bbff0868e2fde320e4a 100644 --- a/src/fr/inrialpes/exmo/align/impl/renderer/SPARQLConstructRendererVisitor.java +++ b/src/fr/inrialpes/exmo/align/impl/renderer/SPARQLConstructRendererVisitor.java @@ -1,7 +1,7 @@ /* * $Id$ * - * Copyright (C) INRIA, 2012-2015 + * Copyright (C) INRIA, 2012-2016 * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by @@ -74,7 +74,7 @@ public class SPARQLConstructRendererVisitor extends GraphPatternRendererVisitor * Initialises the parameters of the renderer */ public void init(Properties p) { - init(); + super.init( p ); if ( p.getProperty("graphName") != null ) { setGraphName( p.getProperty("graphName") ); } @@ -100,13 +100,6 @@ public class SPARQLConstructRendererVisitor extends GraphPatternRendererVisitor } split((p.getProperty("split") != null && !p.getProperty("split").equals("")), p.getProperty("dir") + "/"); - - if (p.getProperty("indent") != null) { - INDENT = p.getProperty("indent"); - } - if (p.getProperty("newline") != null) { - NL = p.getProperty("newline"); - } } public void visit(Alignment align) throws AlignmentException { @@ -123,7 +116,7 @@ public class SPARQLConstructRendererVisitor extends GraphPatternRendererVisitor } } edoal = alignment.getLevel().startsWith("2EDOAL"); - content_Corese = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>" + NL; + content_Corese = "<?xml version=\"1.0\" encoding=\""+ENC+"\"?>" + NL; content_Corese += "<!DOCTYPE rdf:RDF [" + NL; content_Corese += "<!ENTITY rdf \"http://www.w3.org/1999/02/22-rdf-syntax-ns#\">" + NL; content_Corese += "<!ENTITY rdfs \"http://www.w3.org/2000/01/rdf-schema#\">" + NL; diff --git a/src/fr/inrialpes/exmo/align/impl/renderer/SPARQLLinkkerRendererVisitor.java b/src/fr/inrialpes/exmo/align/impl/renderer/SPARQLLinkkerRendererVisitor.java index e4384466882dc748b7f0db35fe6392b771b4fbdb..2bb600113e0d70b0c9c1ef105c1e7ce7b0de35a2 100644 --- a/src/fr/inrialpes/exmo/align/impl/renderer/SPARQLLinkkerRendererVisitor.java +++ b/src/fr/inrialpes/exmo/align/impl/renderer/SPARQLLinkkerRendererVisitor.java @@ -1,7 +1,7 @@ /* * $Id$ * - * Copyright (C) INRIA, 2015 + * Copyright (C) INRIA, 2015-2016 * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by @@ -94,7 +94,7 @@ public class SPARQLLinkkerRendererVisitor extends GraphPatternRendererVisitor im * Initialises the parameters of the renderer */ public void init( Properties p ) { - init(); + super.init( p ); if ( p.getProperty("graphName1") != null ) { setGraph1Name( p.getProperty("graphName1") ); } @@ -149,7 +149,7 @@ public class SPARQLLinkkerRendererVisitor extends GraphPatternRendererVisitor im } edoal = alignment.getLevel().startsWith("2EDOAL"); if ( !edoal ) throw new AlignmentException("SPARQLLinkerRenderer: cannot render simple alignment. Need an EDOALAlignment" ); - content_Corese = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>" + NL; + content_Corese = "<?xml version=\"1.0\" encoding=\""+ENC+"\"?>" + NL; content_Corese += "<!DOCTYPE rdf:RDF [" + NL; content_Corese += "<!ENTITY rdf \"http://www.w3.org/1999/02/22-rdf-syntax-ns#\">" + NL; content_Corese += "<!ENTITY rdfs \"http://www.w3.org/2000/01/rdf-schema#\">" + NL; diff --git a/src/fr/inrialpes/exmo/align/impl/renderer/SPARQLSelectRendererVisitor.java b/src/fr/inrialpes/exmo/align/impl/renderer/SPARQLSelectRendererVisitor.java index 5402de75aecf938743f75c101e5b0e38b4a290bb..388d0f1d551455c06263a5ccdcf0f524990c3c59 100644 --- a/src/fr/inrialpes/exmo/align/impl/renderer/SPARQLSelectRendererVisitor.java +++ b/src/fr/inrialpes/exmo/align/impl/renderer/SPARQLSelectRendererVisitor.java @@ -1,7 +1,7 @@ /* * $Id$ * - * Copyright (C) INRIA, 2012-2015 + * Copyright (C) INRIA, 2012-2016 * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by @@ -70,7 +70,7 @@ public class SPARQLSelectRendererVisitor extends GraphPatternRendererVisitor imp } public void init( Properties p ) { - init(); + super.init( p ); if ( p.getProperty( "graphName1" ) != null ) { setGraph1Name( p.getProperty("graphName1") ); } @@ -97,12 +97,6 @@ public class SPARQLSelectRendererVisitor extends GraphPatternRendererVisitor imp if (p.getProperty("dir") != null && !p.getProperty("dir").equals("")) { splitdir = p.getProperty("dir") + "/"; } - if (p.getProperty("indent") != null) { - INDENT = p.getProperty("indent"); - } - if (p.getProperty("newline") != null) { - NL = p.getProperty("newline"); - } } public void visit(Alignment align) throws AlignmentException { diff --git a/src/fr/inrialpes/exmo/align/impl/renderer/SWRLRendererVisitor.java b/src/fr/inrialpes/exmo/align/impl/renderer/SWRLRendererVisitor.java index 6c4b62a3627c3db240c7e7c6c37fbbd01dc97ae3..8e2835827a4c80e3e6c7e36e2467482f14ba97c9 100644 --- a/src/fr/inrialpes/exmo/align/impl/renderer/SWRLRendererVisitor.java +++ b/src/fr/inrialpes/exmo/align/impl/renderer/SWRLRendererVisitor.java @@ -1,7 +1,7 @@ /* * $Id$ * - * Copyright (C) INRIA, 2003-2004, 2007-2010, 2012-2015 + * Copyright (C) INRIA, 2003-2004, 2007-2010, 2012-2016 * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by @@ -61,6 +61,7 @@ public class SWRLRendererVisitor extends IndentedRendererVisitor implements Alig } public void init( Properties p ) { + super.init( p ); if ( p.getProperty( "embedded" ) != null && !p.getProperty( "embedded" ).equals("") ) embedded = true; }; @@ -80,7 +81,7 @@ public class SWRLRendererVisitor extends IndentedRendererVisitor implements Alig onto1 = ((ObjectAlignment)alignment).getOntologyObject1(); onto2 = ((ObjectAlignment)alignment).getOntologyObject2(); if ( embedded == false ) - indentedOutput("<?xml version=\"1.0\" encoding=\"UTF-8\"?>"+NL+NL); + indentedOutput("<?xml version=\"1.0\" encoding=\""+ENC+"\"?>"+NL+NL); indentedOutput("<swrlx:Ontology swrlx:name=\"generatedAl\""+NL); String indentString = INDENT; setIndentString( " " ); diff --git a/src/fr/inrialpes/exmo/align/impl/renderer/XMLMetadataRendererVisitor.java b/src/fr/inrialpes/exmo/align/impl/renderer/XMLMetadataRendererVisitor.java index 828d476661a9f0c805aef2cf80c7a1c1e80d7847..26d9ded78e74c2d10ecffcf318bb98980b26d05c 100644 --- a/src/fr/inrialpes/exmo/align/impl/renderer/XMLMetadataRendererVisitor.java +++ b/src/fr/inrialpes/exmo/align/impl/renderer/XMLMetadataRendererVisitor.java @@ -1,7 +1,7 @@ /* * $Id$ * - * Copyright (C) INRIA, 2007, 2009-2010, 2012, 2014-2015 + * Copyright (C) INRIA, 2007, 2009-2010, 2012, 2014-2016 * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by @@ -59,6 +59,7 @@ public class XMLMetadataRendererVisitor extends IndentedRendererVisitor implemen } public void init( Properties p ) { + super.init( p ); if ( p.getProperty( "embedded" ) != null && !p.getProperty( "embedded" ).equals("") ) embedded = true; if ( p.getProperty( "newstyle" ) != null @@ -90,7 +91,7 @@ public class XMLMetadataRendererVisitor extends IndentedRendererVisitor implemen extensionString += INDENT+INDENT+"<"+tag+">"+ext[2]+"</"+tag+">"+NL; } if ( embedded == false ) { - indentedOutputln("<?xml version='1.0' encoding='utf-8' standalone='no'?>"); + indentedOutputln("<?xml version='1.0' encoding='"+ENC+"' standalone='no'?>"); } writer.print("<rdf:RDF xmlns='"+Namespace.ALIGNMENT.uri+"'"); for ( Entry<String,String> e : nslist.entrySet() ) { diff --git a/src/fr/inrialpes/exmo/align/impl/renderer/XSLTRendererVisitor.java b/src/fr/inrialpes/exmo/align/impl/renderer/XSLTRendererVisitor.java index f25ec41516056cb5cb24f6fd98eda7703f8cc57e..b628a932c0a4141d72bfbcaa1923438425c6d405 100644 --- a/src/fr/inrialpes/exmo/align/impl/renderer/XSLTRendererVisitor.java +++ b/src/fr/inrialpes/exmo/align/impl/renderer/XSLTRendererVisitor.java @@ -1,7 +1,7 @@ /* * $Id$ * - * Copyright (C) INRIA, 2003-2004, 2006-2010, 2012-2015 + * Copyright (C) INRIA, 2003-2004, 2006-2010, 2012-2016 * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by @@ -69,6 +69,7 @@ public class XSLTRendererVisitor extends IndentedRendererVisitor implements Alig } public void init( Properties p ) { + super.init( p ); if ( p.getProperty( "embedded" ) != null && !p.getProperty( "embedded" ).equals("") ) embedded = true; }; @@ -86,7 +87,7 @@ public class XSLTRendererVisitor extends IndentedRendererVisitor implements Alig } alignment = align; if ( embedded == false ) - indentedOutputln("<?xml version=\"1.0\" encoding=\"UTF-8\"?>"); + indentedOutputln("<?xml version=\"1.0\" encoding=\""+ENC+"\"?>"); indentedOutputln("<xsl:stylesheet version=\"1.0\""); increaseIndent(); increaseIndent();