[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdesupport/akonadi/server/src/storage
From: Marc Mutz <mutz () kde ! org>
Date: 2010-07-09 10:17:42
Message-ID: 20100709101743.0048BAC85D () svn ! kde ! org
[Download RAW message or body]
SVN commit 1147884 by mutz:
entities-source.xsl: use column/@default as documents
Currently only implemented for basic types, because I don't know how to do C string \
escaping in XSLT 1.0 :)
M +3 -3 entities-source.xsl
--- trunk/kdesupport/akonadi/server/src/storage/entities-source.xsl #1147883:1147884
@@ -33,7 +33,7 @@
Private() : QSharedData()
<!-- BEGIN Variable Initializers - order as Variable Declarations below -->
<xsl:for-each select="column[@type = 'qint64' and @name != 'id']">
- , <xsl:value-of select="@name"/>( 0 )
+ , <xsl:value-of select="@name"/>( <xsl:choose><xsl:when \
test="@default"><xsl:value-of \
select="@default"/></xsl:when><xsl:otherwise>0</xsl:otherwise></xsl:choose> ) \
</xsl:for-each> <xsl:if test="column[@type = 'QDateTime']">
#ifdef Q_OS_WINCE // on wince, QDateTime is two int's
@@ -56,10 +56,10 @@
#endif
</xsl:if>
<xsl:for-each select="column[@type = 'int']">
- , <xsl:value-of select="@name"/>( 0 )
+ , <xsl:value-of select="@name"/>( <xsl:choose><xsl:when \
test="@default"><xsl:value-of \
select="@default"/></xsl:when><xsl:otherwise>0</xsl:otherwise></xsl:choose> ) \
</xsl:for-each> <xsl:for-each select="column[@type = 'bool']">
- , <xsl:value-of select="@name"/>( false )
+ , <xsl:value-of select="@name"/>( <xsl:choose><xsl:when \
test="@default"><xsl:value-of \
select="@default"/></xsl:when><xsl:otherwise>false</xsl:otherwise></xsl:choose> ) \
</xsl:for-each> <xsl:for-each select="column[@name != 'id']">
, <xsl:value-of select="@name"/>_changed( false )
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic