diff options
author | 2015-08-28 09:58:54 +0800 | |
---|---|---|
committer | 2015-09-01 12:44:00 +0800 | |
commit | e44e3482bdb4d0ebde2d8b41830ac2cdb07948fb (patch) | |
tree | 66b09f592c55df2878107a468a91d21506104d3f /qemu/roms/openbios/config/xml/config-forth.xsl | |
parent | 9ca8dbcc65cfc63d6f5ef3312a33184e1d726e00 (diff) |
Add qemu 2.4.0
Change-Id: Ic99cbad4b61f8b127b7dc74d04576c0bcbaaf4f5
Signed-off-by: Yang Zhang <yang.z.zhang@intel.com>
Diffstat (limited to 'qemu/roms/openbios/config/xml/config-forth.xsl')
-rw-r--r-- | qemu/roms/openbios/config/xml/config-forth.xsl | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/qemu/roms/openbios/config/xml/config-forth.xsl b/qemu/roms/openbios/config/xml/config-forth.xsl new file mode 100644 index 000000000..cace0deb9 --- /dev/null +++ b/qemu/roms/openbios/config/xml/config-forth.xsl @@ -0,0 +1,41 @@ +<?xml version="1.0" encoding="ISO-8859-15" ?> + +<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> + + <xsl:template match="/"> + <xsl:for-each select="config/option"> + <xsl:choose> + <xsl:when test="@type='boolean'"> + <xsl:choose> + <xsl:when test="@value='true'"> + <xsl:text>[DEFINE] </xsl:text> + <xsl:value-of select="@name"/> + <xsl:text> </xsl:text> + </xsl:when> + <xsl:when test="@value='false'"> + <!-- nothing to do --> + </xsl:when> + <xsl:otherwise> + <xsl:message terminate="yes"> ERROR: boolean configuration option '<xsl:value-of select="@name"/>' has unsupported value '<xsl:value-of select="@type"/>' instead of [true|false].</xsl:message> + </xsl:otherwise> + </xsl:choose> + </xsl:when> + <xsl:when test="@type='integer'"> + <!-- this makes absolutely no sense but the old code did it as well --> + <xsl:text>[DEFINE] </xsl:text> + <xsl:value-of select="@name"/> + <xsl:text> </xsl:text> + </xsl:when> + <!-- config option "string" --> + <xsl:when test="@type='string'"> + </xsl:when> + <xsl:otherwise> + <xsl:message terminate="yes"> ERROR: configuration option '<xsl:value-of select="@name"/>' has unsupported type '<xsl:value-of select="@type"/>'.</xsl:message> + </xsl:otherwise> + </xsl:choose> + </xsl:for-each> + </xsl:template> + + <xsl:output method="text" indent="no" encoding="iso-8859-15"/> + +</xsl:stylesheet> |