a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
151 lines
2.0 KiB
XML
151 lines
2.0 KiB
XML
<?xml version="1.0"?>
|
|
|
|
|
|
|
|
<xsl:stylesheet version="1.0"
|
|
|
|
xmlns="urn:schemas-microsoft-com:office:spreadsheet"
|
|
|
|
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
|
|
|
xmlns:msxsl="urn:schemas-microsoft-com:xslt"
|
|
|
|
xmlns:user="urn:my-scripts"
|
|
|
|
xmlns:o="urn:schemas-microsoft-com:office:office"
|
|
|
|
xmlns:x="urn:schemas-microsoft-com:office:excel"
|
|
|
|
xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet" >
|
|
|
|
|
|
|
|
<xsl:template match="/">
|
|
|
|
<Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet"
|
|
|
|
xmlns:o="urn:schemas-microsoft-com:office:office"
|
|
|
|
xmlns:x="urn:schemas-microsoft-com:office:excel"
|
|
|
|
xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet"
|
|
|
|
xmlns:html="http://www.w3.org/TR/REC-html40">
|
|
|
|
<xsl:apply-templates/>
|
|
|
|
|
|
|
|
<Styles>
|
|
|
|
<Style ss:ID="Default" ss:Name="Normal">
|
|
|
|
<Alignment ss:Vertical="Bottom"/>
|
|
|
|
<Borders/>
|
|
|
|
<Font/>
|
|
|
|
<Interior/>
|
|
|
|
<NumberFormat/>
|
|
|
|
<Protection/>
|
|
|
|
</Style>
|
|
|
|
<Style ss:ID="s21">
|
|
|
|
<Font ss:Bold="1"/>
|
|
|
|
<Alignment ss:Horizontal="Center" ss:Vertical="Bottom"/>
|
|
|
|
</Style>
|
|
|
|
<Style ss:ID="s22">
|
|
|
|
<Alignment ss:Horizontal="Center" ss:Vertical="Bottom"/>
|
|
|
|
<Font ss:Bold="1"/>
|
|
|
|
<Interior ss:Color="#99CCFF" ss:Pattern="Solid"/>
|
|
|
|
</Style>
|
|
|
|
</Styles>
|
|
|
|
</Workbook>
|
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
<xsl:template match="/*/*">
|
|
|
|
<Worksheet>
|
|
|
|
<xsl:attribute name="ss:Name">
|
|
|
|
<xsl:value-of select="local-name(/*/*)"/>
|
|
|
|
</xsl:attribute>
|
|
|
|
<Table x:FullColumns="1" x:FullRows="1">
|
|
|
|
<Row>
|
|
|
|
<xsl:for-each select="*[position() = 1]/*">
|
|
|
|
<Cell ss:StyleID="s22"><Data ss:Type="String">
|
|
|
|
<xsl:value-of select="local-name()"/>
|
|
|
|
</Data></Cell>
|
|
|
|
</xsl:for-each>
|
|
|
|
</Row>
|
|
|
|
<xsl:apply-templates/>
|
|
|
|
</Table>
|
|
|
|
</Worksheet>
|
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
|
|
|
|
<xsl:template match="/*/*/*">
|
|
|
|
<Row>
|
|
|
|
<xsl:apply-templates/>
|
|
|
|
</Row>
|
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
|
|
|
|
<xsl:template match="/*/*/*/*">
|
|
|
|
<Cell><Data ss:Type="String">
|
|
|
|
<xsl:value-of select="."/>
|
|
|
|
</Data></Cell>
|
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
|
|
|
|
</xsl:stylesheet>
|
|
|