[Yanel-commits] rev 29092 - public/yanel/trunk/src/build

michi at wyona.com michi at wyona.com
Tue Nov 20 23:30:24 CET 2007


Author: michi
Date: 2007-11-20 23:30:24 +0100 (Tue, 20 Nov 2007)
New Revision: 29092

Added:
   public/yanel/trunk/src/build/fix-resources-src.xsl
Log:
fix src of resources

Added: public/yanel/trunk/src/build/fix-resources-src.xsl
===================================================================
--- public/yanel/trunk/src/build/fix-resources-src.xsl	                        (rev 0)
+++ public/yanel/trunk/src/build/fix-resources-src.xsl	2007-11-20 22:30:24 UTC (rev 29092)
@@ -0,0 +1,28 @@
+<?xml version="1.0"?>
+
+<xsl:stylesheet version="1.0"
+  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+  xmlns:yanel="http://www.wyona.org/yanel/1.0"
+>
+
+<xsl:output method="xml" indent="yes"/>
+
+<xsl:template match="/">
+  <y:resource-types xmlns:y="http://www.wyona.org/yanel/1.0" version="{/yanel:resource-types/@version}">
+  <xsl:for-each select="/yanel:resource-types/yanel:resource-type">
+    <xsl:choose>
+      <xsl:when test="@package">
+    <y:resource-type package="{@package}"/>
+      </xsl:when>
+      <xsl:when test="@copy-dir-name">
+    <y:resource-type src="../../resources/{@copy-dir-name}"/>
+      </xsl:when>
+      <xsl:otherwise>
+    <y:resource-type src="{@src}"/>
+      </xsl:otherwise>
+    </xsl:choose>
+  </xsl:for-each>
+  </y:resource-types>
+</xsl:template>
+
+</xsl:stylesheet>



More information about the Yanel-commits mailing list