File: libosinfo-test-install-script.xml

package info (click to toggle)
libosinfo 1.0.0-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 10,788 kB
  • ctags: 3,801
  • sloc: ansic: 14,534; sh: 4,445; makefile: 469; xml: 302; perl: 105; python: 41
file content (32 lines) | stat: -rw-r--r-- 1,232 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<libosinfo version="0.0.1">
  <!-- JEOS PROFILE -->
  <install-script id="http://example.com/libosinfo/test-install-script">
    <profile>jeos</profile>
    <expected-filename>test.ks</expected-filename>
    <config>
      <param name="l10n-keyboard" policy="optional" value-map="http://example.com/libosinfo/test-datamap"/>
      <param name="l10n-language" policy="optional" value-map="http://example.com/libosinfo/test-datamap2"/>
      <param name="l10n-timezone" policy="optional"/>
    </config>
    <template>
      <xsl:stylesheet
        xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
        version="1.0">

        <xsl:output method="text"/>

        <xsl:template match="/install-script-config">
# OS id=<xsl:value-of select="os/id"/>
# <xsl:choose>
    <xsl:when test="media != ''">Media id=<xsl:value-of select="media/id"/></xsl:when>
    <xsl:otherwise>Unknown media</xsl:otherwise>
  </xsl:choose>
# Profile: <xsl:value-of select="script/profile"/>
keyboard <xsl:value-of select="config/l10n-keyboard"/>
lang <xsl:value-of select="config/l10n-language"/>
timezone --utc <xsl:value-of select="config/l10n-timezone"/>
        </xsl:template>
      </xsl:stylesheet>
    </template>
  </install-script>
</libosinfo>