keywordファイル

Groovy code-completion in IntelliJ
http://glaforge.free.fr/weblog/index.php?itemid=103&catid=2
にうらやましい例がのっていて、設定ファイル http://glaforge.free.fr/groovy/Groovy.xml があった。
XMLなのでちょうどよいので XSLT をつかってサクラエディタの groovy用のkeywordファイルをつくってみた。

>type groovy.xsl
<?xml version="1.0" encoding="Shift_JIS"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="text" encoding="Shift_JIS" />
<xsl:template match="keyword">
.<xsl:value-of select="@name" />
</xsl:template>
</xsl:stylesheet>

>type build.xml
<?xml version="1.0" encoding="Shift_JIS"?>
<project name="" default="xslt">
<target name="xslt">
<xslt in="groovy.xml" out="groovy.kwd" style="groovy.xsl" />
</target>
</project>

できあがったファイルは汚い。
きれいにする方法がわからず。
一応コード補完できるようにはなった。