Author: hibou
Date: Wed Feb 17 23:03:43 2010
New Revision: 911214

URL: http://svn.apache.org/viewvc?rev=911214&view=rev
Log:
handle the import properly as it is a groovy keyword

Modified:
    ant/sandbox/groovyfront/xml2groovy.xsl

Modified: ant/sandbox/groovyfront/xml2groovy.xsl
URL: 
http://svn.apache.org/viewvc/ant/sandbox/groovyfront/xml2groovy.xsl?rev=911214&r1=911213&r2=911214&view=diff
==============================================================================
--- ant/sandbox/groovyfront/xml2groovy.xsl (original)
+++ ant/sandbox/groovyfront/xml2groovy.xsl Wed Feb 17 23:03:43 2010
@@ -68,7 +68,14 @@
         </if>
 
         <!-- actual element / function name -->
-        <value-of select="local-name()" />
+        <choose>
+            <when test="local-name() = 'import'">
+                <text>include</text>
+            </when>
+            <otherwise>
+                <value-of select="local-name()" />
+            </otherwise>
+        </choose>
 
         <text>(</text>
 


Reply via email to