</xs:attribute>
+ <xs:attribute name="profile">
+ <xs:simpleType>
+ <xs:restriction base="xs:string">
+ <xs:enumeration value="all"/>
+ <xs:enumeration value="common"/>
+ <xs:enumeration value="mobile"/>
+ <xs:enumeration value="wearable"/>
+ <xs:enumeration value="tv"/>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+
<xs:element name="vconfkey">
<xs:complexType>
<xs:sequence>
</xs:sequence>
<xs:attribute name="name" type='xs:string'/>
<xs:attribute ref="type"/>
+ <xs:attribute ref="profile"/>
<xs:attribute name="headeronly" type='xs:string'/>
<xsl:apply-templates/>
</xsl:template>
-
<xsl:template match="vconfkey">
<xsl:variable name="layer_path" select="./@name"/>
<xsl:variable name="layer_name" select="substring-before($layer_path,'/')"/>
-
<xsl:choose>
<xsl:when test="./initscript">
<xsl:value-of select="initscript"/>
<xsl:when test="@headeronly">
</xsl:when>
<xsl:otherwise>
-<xsl:choose>
- <xsl:when test="./val[@model=$target]">
- <xsl:choose>
-<xsl:when test="$layer_name = 'db' or $layer_name = 'file' ">
-/usr/bin/buxton2ctl -i -d create-<xsl:value-of select="@type"/> "system" "<xsl:value-of select="./@name"/>" "<xsl:value-of select="./val[@model=$target]"/>" <xsl:value-of select="./@label"/> "<xsl:value-of select="./@readPriv"/>" "<xsl:value-of select="./@writePriv"/>"<xsl:text> </xsl:text>
- </xsl:when>
- <xsl:otherwise>
-/usr/bin/buxton2ctl -i -d create-<xsl:value-of select="@type"/> "memory" "<xsl:value-of select="./@name"/>" "<xsl:value-of select="./val[@model=$target]"/>" <xsl:value-of select="./@label"/> "<xsl:value-of select="./@readPriv"/>" "<xsl:value-of select="./@writePriv"/>"<xsl:text> </xsl:text>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:otherwise>
- <xsl:choose>
- <xsl:when test="$layer_name = 'db' or $layer_name = 'file' ">
-/usr/bin/buxton2ctl -i -d create-<xsl:value-of select="@type"/> "system" "<xsl:value-of select="./@name"/>" "<xsl:value-of select="./val[not(@model)]"/>" <xsl:value-of select="./@label"/> "<xsl:value-of select="./@readPriv"/>" "<xsl:value-of select="./@writePriv"/>"<xsl:text> </xsl:text>
- </xsl:when>
- <xsl:otherwise>
-/usr/bin/buxton2ctl -i -d create-<xsl:value-of select="@type"/> "memory" "<xsl:value-of select="./@name"/>" "<xsl:value-of select="./val[not(@model)]"/>" <xsl:value-of select="./@label"/> "<xsl:value-of select="./@readPriv"/>" "<xsl:value-of select="./@writePriv"/>"<xsl:text> </xsl:text>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:otherwise>
-</xsl:choose>
+ <xsl:choose>
+ <xsl:when test="./@profile=$target">
+/usr/bin/buxton2ctl -i -d create-<xsl:value-of select="@type"/> <xsl:choose><xsl:when test="$layer_name = 'db' or $layer_name = 'file' "> "system" </xsl:when><xsl:otherwise> "memory" </xsl:otherwise></xsl:choose> "<xsl:value-of select="./@name"/>" <xsl:choose><xsl:when test="./val[@model=$target]"> "<xsl:value-of select="./val[@model=$target]"/>" </xsl:when><xsl:otherwise> "<xsl:value-of select="./val[not(@model)]"/>" </xsl:otherwise></xsl:choose> <xsl:value-of select="./@label"/> "<xsl:value-of select="./@readPriv"/>" "<xsl:value-of select="./@writePriv"/>"<xsl:text> </xsl:text>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:choose>
+ <xsl:when test="@profile"></xsl:when><!-- do nothing -->
+ <xsl:otherwise>
+/usr/bin/buxton2ctl -i -d create-<xsl:value-of select="@type"/> <xsl:choose><xsl:when test="$layer_name = 'db' or $layer_name = 'file' "> "system" </xsl:when><xsl:otherwise> "memory" </xsl:otherwise></xsl:choose> "<xsl:value-of select="./@name"/>" <xsl:choose><xsl:when test="./val[@model=$target]"> "<xsl:value-of select="./val[@model=$target]"/>" </xsl:when><xsl:otherwise> "<xsl:value-of select="./val[not(@model)]"/>" </xsl:otherwise></xsl:choose> <xsl:value-of select="./@label"/> "<xsl:value-of select="./@readPriv"/>" "<xsl:value-of select="./@writePriv"/>"<xsl:text> </xsl:text>
+ </xsl:otherwise></xsl:choose>
+ </xsl:otherwise>
+ </xsl:choose>
+
</xsl:otherwise>
</xsl:choose>
</xsl:template>
-
-
-<xsl:template match="initscript">
-
-# INITSCRIPT HERE
-
-</xsl:template>
-
</xsl:stylesheet>
<email>mj2004.park@samsung.com</email>
<comment><![CDATA[ it's for Wearable ]]></comment>
</vconfkey>
- <vconfkey type="int32" name="db/setting/blockmode_wearable_r" headeronly="true" readPriv="" writePriv="">
+ <vconfkey profile="wearable" type="int32" name="db/setting/blockmode_wearable_r" readPriv="" writePriv="">
<header>VCONFKEY_SETAPPL_BLOCKMODE_WEARABLE_R_BOOL</header>
<val>0</val>
<creator> Myoungjune Park </creator>