*
* Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
*
- * Contact: Hakjoo Ko <email at samsung.com>
- *
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
#ifdef USE_NONCREATED_VCONF_KEY
#warning using non-created vconf-key ----- please make sure this key is in use actually
#endif
+<xsl:choose>
+<xsl:when test="./comment">
+/**
+ * <xsl:value-of select="./comment"/>
+ */
+</xsl:when>
+</xsl:choose>
#define <xsl:value-of select="./header"/> <xsl:text> </xsl:text> "<xsl:value-of select="./@name"/>"
</xsl:when>
<xsl:otherwise>
+<xsl:choose>
+<xsl:when test="./comment">
+/**
+ * <xsl:value-of select="./comment"/>
+ */
+</xsl:when>
+</xsl:choose>
#define <xsl:value-of select="./header"/> <xsl:text> </xsl:text> "<xsl:value-of select="./@name"/>"
</xsl:otherwise>
</xsl:choose>
<xsl:template match="enumlist">
<xsl:choose>
<xsl:when test="./@name">
+<xsl:choose>
+<xsl:when test="./comment">
+/**
+ * <xsl:value-of select="./comment"/>
+ */
+</xsl:when>
+</xsl:choose>
enum <xsl:value-of select="./@name"/> {
<xsl:apply-templates select="./enumdata"> </xsl:apply-templates>
};
</xsl:when>
<xsl:otherwise>
+<xsl:choose>
+<xsl:when test="./comment">
+/**
+ * <xsl:value-of select="./comment"/>
+ */
+</xsl:when>
+</xsl:choose>
enum {
<xsl:apply-templates select="./enumdata"> </xsl:apply-templates>
};
<xsl:template match="enumdata">
<xsl:choose>
- <xsl:when test="./@val">
- <xsl:value-of select="."/> = <xsl:value-of select="./@val"/>
+ <xsl:when test="./@value">
+ <xsl:value-of select="."/> = <xsl:value-of select="./@value"/>
<xsl:choose>
<xsl:when test="position()!=last()">,
</xsl:when>