Commit 2fe112b7 authored by Jérôme Euzenat's avatar Jérôme Euzenat
Browse files

- updated corrections on rules

parent 712c67f9
/** /**
* $Id: Flatten.java,v 1.3 2004-02-24 13:53:19 jerome Exp $ * $Id: Flatten.java,v 1.4 2004-02-24 15:08:00 jerome Exp $
* *
* Transmorpher * Transmorpher
* *
...@@ -110,12 +110,6 @@ public class Flatten implements Rule { ...@@ -110,12 +110,6 @@ public class Flatten implements Rule {
file.writeln(4, "</xsl:copy>"); file.writeln(4, "</xsl:copy>");
file.writeln(2, "</xsl:template>"); file.writeln(2, "</xsl:template>");
file.writeln(""); file.writeln("");
file.writeln(2, "<xsl:template match=\"*|@*|text()\">");
file.writeln(4, "<xsl:copy>");
file.writeln(6, "<xsl:apply-templates select=\"*|@*|text()\"/>");
file.writeln(4, "</xsl:copy>");
file.writeln(2, "</xsl:template>");
file.writeln("");
file.writeln(2, "<!-- Flatten for " + match + " (inside mode) -->"); file.writeln(2, "<!-- Flatten for " + match + " (inside mode) -->");
file.writeln(2, "<xsl:template match=\"" + match + "\" mode=\"inside" + match + "\">"); file.writeln(2, "<xsl:template match=\"" + match + "\" mode=\"inside" + match + "\">");
......
/** /**
* $Id: MapAtt.java,v 1.3 2004-02-24 13:53:19 jerome Exp $ * $Id: MapAtt.java,v 1.4 2004-02-24 15:08:00 jerome Exp $
* *
* Transmorpher * Transmorpher
* *
...@@ -172,7 +172,7 @@ public class MapAtt implements Rule { ...@@ -172,7 +172,7 @@ public class MapAtt implements Rule {
} }
file.writeln("@" + match + "\">"); file.writeln("@" + match + "\">");
file.writeln(4, "<xsl:attribute name=\"" + target + "\">"); file.writeln(4, "<xsl:attribute name=\"" + target + "\">");
file.write("<xsl:value-of select=\"@" + match + "\"/>"); file.write("<xsl:value-of select=\".\"/>");
file.writeln(4, "</xsl:attribute>"); file.writeln(4, "</xsl:attribute>");
file.writeln(2, "</xsl:template>"); file.writeln(2, "</xsl:template>");
file.writeln(""); file.writeln("");
...@@ -187,7 +187,7 @@ public class MapAtt implements Rule { ...@@ -187,7 +187,7 @@ public class MapAtt implements Rule {
public void generateInsideXSLTCode(Writer file) throws IOException { public void generateInsideXSLTCode(Writer file) throws IOException {
file.writeln(6, "<!-- Mapping attributes " + match + " to " + target + " -->"); file.writeln(6, "<!-- Mapping attributes " + match + " to " + target + " -->");
file.writeln(6, "<xsl:attribute name=\"" + target + "\">"); file.writeln(6, "<xsl:attribute name=\"" + target + "\">");
file.write("<xsl:value-of select=\".\"/>"); file.write("<xsl:value-of select=\"@" + match + "\"/>");
file.writeln(6, "</xsl:attribute>"); file.writeln(6, "</xsl:attribute>");
file.writeln(""); file.writeln("");
} }
......
/** /**
* $Id: Version.java,v 1.1 2002-11-06 14:08:21 serge Exp $ * $Id: Version.java,v 1.2 2004-02-24 15:08:00 jerome Exp $
* *
* Transmorpher * Transmorpher
* *
* Copyright (C) 2001-2002 Fluxmedia and INRIA Rhône-Alpes. * Copyright (C) 2001-2002 Fluxmedia and INRIA Rhône-Alpes.
* Copyright (C) 2003-2004 INRIA Rhône-Alpes.
* *
* http://www.fluxmedia.fr - http://transmorpher.inrialpes.fr * http://www.fluxmedia.fr - http://transmorpher.inrialpes.fr
* *
...@@ -38,5 +39,5 @@ public interface Version { ...@@ -38,5 +39,5 @@ public interface Version {
public static final String NAME = "Transmorpher"; public static final String NAME = "Transmorpher";
public static final String DATE = "@DATE@"; public static final String DATE = "@DATE@";
public static final String URL = "http://transmorpher.inrialpes.fr"; public static final String URL = "http://transmorpher.inrialpes.fr";
public static final String RIGHTS = "(C) FluxMedia & INRIA Rhône-Alpes, 2001-2002"; public static final String RIGHTS = "(C) FluxMedia & INRIA Rhône-Alpes, 2001-2002\n(C) INRIA Rhône-Alpes, 2003-2004";
} }
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment