Fix create_cmd to handle emulator also
[platform/core/appfw/vconf-internal-keys.git] / create_init_script.xsl
index 3d0763f..b6e38ca 100644 (file)
@@ -8,9 +8,12 @@ xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
 </xsl:template>
 <xsl:template match="vconfkey">
 <xsl:choose>
-       <xsl:when test="./script">
-<xsl:value-of select="script"/>
+       <xsl:when test="./script[@model=$target]">
+<xsl:value-of select="script[@model=$target]"/>
   </xsl:when>
+  <xsl:otherwise>
+<xsl:value-of select="script"/>
+  </xsl:otherwise>
 </xsl:choose>
 </xsl:template>
 </xsl:stylesheet>