Creating input overviews

From FlightGear wiki
Revision as of 18:49, 9 November 2016 by Texnicer (talk | contribs) (Created page with "* keyboard.xsl * adding the reference to this file into your <input>.xml file: [code]<?xml-stylesheet href="keyboard.xsl" type="text/xsl" ?>[/code] [code] <?xml version="1.0...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
  • keyboard.xsl
  • adding the reference to this file into your <input>.xml file: [code]<?xml-stylesheet href="keyboard.xsl" type="text/xsl" ?>[/code]


[code] <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet xmlns="http://www.w3.org/1999/xhtml" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:output method="html" indent="yes" encoding="UTF-8"/> <xsl:variable name="language" select="'en'"/>



<xsl:template match="/">

 <html>

<head> <title>Keyboard-Profile Overview</title> <style type="text/css" rel="stylesheet">

body { width:19cm; padding-left:1.5cm; }

* { font-size:12pt; }


span.title { font-size:18pt; font-family:sans-serif; font-weight:bold; color:#0f0f0f; }

span.subtitle { font-size:12pt; font-family:sans-serif; font-weight:bold; color:#0f0f0f; }

th.toprule { border-top: 2pt #000 solid; }

th.midrule { border-top: 1pt #000 solid; }

th.bottomrule { border-bottom: 2pt #000 solid; }

th.headline { background-color: #000; color: #FFF; font-weight:bold; padding-left:2pt; }

th { font-family:sans-serif; text-align:left; padding-right:1cm; }

th.number { padding-right:2pt; }

td { padding-right:2em; vertical-align:top; padding-bottom:.2em; }

td.number { text-align:right; padding-right:2pt; }


td.footnote { align:right; text-align:right; padding-right:0pt; }

span.footnote{ font-size:10pt; font-family:sans-serif; }

span.sup { font-size:7pt; vertical-align: 1.2ex; padding-left:2pt; font-weight:bold; } </style> </head>

 <body>
   Keyboard-Profile Overview
http://www.flightgear.org/
keyboard.xsl 2.0 [2016/11/09]

<xsl:for-each select="PropertyList/key">

</xsl:for-each>
Keyboard-Configuration
DescriptionActionNumber
<xsl:value-of select="name"/> <xsl:value-of select="desc"/> <xsl:value-of select="@n"/>
</body>
</html>

</xsl:template>

</xsl:stylesheet> [/code]