<xs:element ref="creator" minOccurs='0' maxOccurs='1'/>
<xs:element ref="email" minOccurs='0' maxOccurs='1'/>
<xs:element ref="comment" minOccurs='0' maxOccurs='1'/>
- <xs:element ref="script" minOccurs='0' maxOccurs='1'/>
+ <xs:element name="script" type="Value" minOccurs='0' maxOccurs='unbounded'/>
<xs:element ref="enumlist" minOccurs='0' maxOccurs='unbounded'/>
</xs:sequence>
<xs:attribute name="name" type='xs:string'/>
<xs:element name="creator" type='xs:string'/>
<xs:element name="email" type='xs:string'/>
<xs:element name="comment" type='xs:string'/>
- <xs:element name="script" type='xs:string'/>
+ <xs:element name="script">
+ <xs:complexType>
+ <xs:attribute name="model" type='xs:string'/>
+ </xs:complexType>
+ </xs:element>
<xs:complexType name="Value">
</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>
ln -s /opt/etc/localtime /etc/localtime
echo "-------------------------------------------------------------------------------------"
]]></script>
+ <script model="wearable">
+<![CDATA[
+echo "Do Nothing on Wearable"
+]]></script>
+ <script model="tv">
+<![CDATA[
+echo "Do Nothing on TV"
+]]></script>
</vconfkey>
<vconfkey type="string" name="db/setting/timezone" layer="system" readPriv="http://tizen.org/privilege/internal/default/platform" writePriv="http://tizen.org/privilege/internal/default/platform">
<header>VCONFKEY_SETAPPL_TIMEZONE_INT</header>