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
45 #define <xsl:value-of select="./header"/> <xsl:text> </xsl:text> "<xsl:value-of select="./@name"/>"
48 #define <xsl:value-of select="./header"/> <xsl:text> </xsl:text> "<xsl:value-of select="./@name"/>"
54 <xsl:apply-templates select="./enumlist"> </xsl:apply-templates>
56 <xsl:template match="enumlist">
58 <xsl:when test="./@name">
59 enum <xsl:value-of select="./@name"/> {
60 <xsl:apply-templates select="./enumdata"> </xsl:apply-templates>
65 <xsl:apply-templates select="./enumdata"> </xsl:apply-templates>
75 <xsl:template match="enumdata">
78 <xsl:when test="./@val">
79 <xsl:value-of select="."/> = <xsl:value-of select="./@val"/>
81 <xsl:when test="position()!=last()">,
88 <xsl:value-of select="."/>
90 <xsl:when test="position()!=last()">,