Changeset 9702 in vbox
- Timestamp:
- Jun 16, 2008 9:07:19 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/xml/SettingsConverter.xsl
r8155 r9702 8 8 9 9 Copyright (C) 2006-2008 Sun Microsystems, Inc. 10 10 11 11 This file is part of VirtualBox Open Source Edition (OSE), as 12 12 available from http://www.virtualbox.org. This file is free software; … … 16 16 VirtualBox OSE distribution. VirtualBox OSE is distributed in the 17 17 hope that it will be useful, but WITHOUT ANY WARRANTY of any kind. 18 18 19 19 Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa 20 20 Clara, CA 95054 USA or visit http://www.sun.com if you need … … 434 434 </xsl:template> 435 435 436 <!-- @todo add lastStateChange with the current timestamp if missing. 437 * current-dateTime() is available only in XPath 2.0 so we will need to pass 438 * the current time as a parameter to the XSLT processor. --> 439 <!-- 436 440 <xsl:template match="vb:VirtualBox[substring-before(@version,'-')='1.3.pre']/ 437 441 vb:Machine" 438 442 mode="v1.3"> 439 443 <xsl:copy> 444 <xsl:if test="not(@lastStateChange)"> 445 <xsl:attribute name="lastStateChange"> 446 <xsl:value-of select="current-dateTime()"/> 447 </xsl:attribute> 448 </xsl:if> 440 449 <xsl:apply-templates select="@*|node()" mode="v1.3"/> 441 <xsl:if test="not(@lastStateChange)"> 442 <xsl:attribute name="lastStateChange"></xsl:attribute> 443 </xsl:if> 444 </xsl:copy> 445 </xsl:template> 450 </xsl:copy> 451 </xsl:template> 452 --> 446 453 447 454 </xsl:stylesheet>
Note:
See TracChangeset
for help on using the changeset viewer.