VirtualBox

Changeset 18002 in vbox


Ignore:
Timestamp:
Mar 17, 2009 9:40:34 AM (16 years ago)
Author:
vboxsync
Message:

SettingsConverter: Fix conversion from very old versions like 1.2. Remove tabs

File:
1 edited

Legend:

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

    r17991 r18002  
    854854                     vb:Global"
    855855              mode="v1.7" >
    856         <xsl:copy>
    857             <xsl:apply-templates mode="v1.7" />
    858             <NetserviceRegistry>
     856    <xsl:copy>
     857        <xsl:apply-templates mode="v1.7" />
     858        <NetserviceRegistry>
    859859           <DhcpServers>
    860860              <xsl:choose>
    861                 <xsl:when test="substring-after(../@version,'-')='windows'">
    862                        <DhcpServer networkName="HostInterfaceNetworking-VirtualBox Host-Only Network Adapter"
     861                <xsl:when test="substring-after(../@version,'-')='windows'">
     862                   <DhcpServer networkName="HostInterfaceNetworking-VirtualBox Host-Only Network Adapter"
    863863                        IPAddress="192.168.56.2" networkMask="255.255.255.0"
    864864                        lowerIP="192.168.56.3" upperIP="192.168.56.255"
    865865                        enabled="1"/>
    866                 </xsl:when>
     866                </xsl:when>
    867867                <xsl:otherwise>
    868                        <DhcpServer networkName="HostInterfaceNetworking-vboxnet0"
     868                   <DhcpServer networkName="HostInterfaceNetworking-vboxnet0"
    869869                        IPAddress="192.168.56.2" networkMask="255.255.255.0"
    870870                        lowerIP="192.168.56.3" upperIP="192.168.56.255"
     
    874874           </DhcpServers>
    875875        </NetserviceRegistry>             
    876         </xsl:copy>
     876    </xsl:copy>
    877877</xsl:template>
    878878
     
    897897  <StorageControllers>
    898898    <StorageController name="IDE">
    899       <xsl:attribute name="type"><xsl:value-of select="../vb:Hardware/vb:BIOS/vb:IDEController/@type"/></xsl:attribute>
     899      <xsl:choose>
     900        <xsl:when test="not(../vb:Hardware/vb:BIOS/vb:IDEController)">
     901          <xsl:attribute name="type">PIIX3</xsl:attribute>
     902        </xsl:when>
     903        <xsl:otherwise>
     904          <xsl:attribute name="type"><xsl:value-of select="../vb:Hardware/vb:BIOS/vb:IDEController/@type"/></xsl:attribute>
     905        </xsl:otherwise>
     906      </xsl:choose>
    900907      <xsl:attribute name="PortCount">2</xsl:attribute>
    901908      <xsl:for-each select="./vb:HardDiskAttachment[@bus = 'IDE']">
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