VirtualBox

Changeset 9702 in vbox


Ignore:
Timestamp:
Jun 16, 2008 9:07:19 AM (17 years ago)
Author:
vboxsync
Message:

Main/Settings: Don't add a wrong lastStateChange attribute value.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/xml/SettingsConverter.xsl

    r8155 r9702  
    88
    99     Copyright (C) 2006-2008 Sun Microsystems, Inc.
    10    
     10
    1111     This file is part of VirtualBox Open Source Edition (OSE), as
    1212     available from http://www.virtualbox.org. This file is free software;
     
    1616     VirtualBox OSE distribution. VirtualBox OSE is distributed in the
    1717     hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
    18    
     18
    1919     Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
    2020     Clara, CA 95054 USA or visit http://www.sun.com if you need
     
    434434</xsl:template>
    435435
     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<!--
    436440<xsl:template match="vb:VirtualBox[substring-before(@version,'-')='1.3.pre']/
    437441                     vb:Machine"
    438442              mode="v1.3">
    439443  <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>
    440449    <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-->
    446453
    447454</xsl:stylesheet>
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette