1 <?xml version="1.0" encoding="UTF-8"?>
2 <xsl:stylesheet version="1.0"
3 xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
4 <xsl:output method="text" version="1.0" encoding="UTF-8" indent="yes"/>
5 <xsl:strip-space elements="*"/>
6 <xsl:template match="/">
10 * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
12 * Licensed under the Apache License, Version 2.0 (the "License");
13 * you may not use this file except in compliance with the License.
14 * You may obtain a copy of the License at
16 * http://www.apache.org/licenses/LICENSE-2.0
18 * Unless required by applicable law or agreed to in writing, software
19 * distributed under the License is distributed on an "AS IS" BASIS,
20 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
21 * See the License for the specific language governing permissions and
22 * limitations under the License.
25 <xsl:apply-templates select="vconfkeylists/filedef"> </xsl:apply-templates>
28 <xsl:template match="filedef">
29 #ifndef <xsl:value-of select="./@name"/>
30 #define <xsl:value-of select="./@name"/>
32 <xsl:apply-templates select="/vconfkeylists/vconfkey"> </xsl:apply-templates>
34 #endif /* <xsl:value-of select="./@name"/> */
37 <xsl:template match="vconfkey">
41 <xsl:when test="./@headeronly">
42 #ifdef USE_NONCREATED_VCONF_KEY
43 #warning using non-created vconf-key ----- please make sure this key is in use actually
46 <xsl:when test="./comment">
48 * <xsl:value-of select="./comment"/>
52 #define <xsl:value-of select="./header"/> <xsl:text> </xsl:text> "<xsl:value-of select="./@name"/>"
56 <xsl:when test="./comment">
58 * <xsl:value-of select="./comment"/>
62 #define <xsl:value-of select="./header"/> <xsl:text> </xsl:text> "<xsl:value-of select="./@name"/>"
68 <xsl:apply-templates select="./enumlist"> </xsl:apply-templates>
70 <xsl:template match="enumlist">
72 <xsl:when test="./@name">
74 <xsl:when test="./comment">
76 * <xsl:value-of select="./comment"/>
80 enum <xsl:value-of select="./@name"/> {
81 <xsl:apply-templates select="./enumdata"> </xsl:apply-templates>
86 <xsl:when test="./comment">
88 * <xsl:value-of select="./comment"/>
93 <xsl:apply-templates select="./enumdata"> </xsl:apply-templates>
103 <xsl:template match="enumdata">
106 <xsl:when test="./@value">
107 <xsl:value-of select="."/> = <xsl:value-of select="./@value"/>
109 <xsl:when test="position()!=last()">,
116 <xsl:value-of select="."/>
118 <xsl:when test="position()!=last()">,