28. Januar 2009 17:37
28. Januar 2009 17:54
28. Januar 2009 18:04
28. Januar 2009 18:08
Gollum83 hat geschrieben:ich bin nicht editorscheu....
28. Januar 2009 18:22
28. Januar 2009 18:36
28. Januar 2009 19:47
fiddi hat geschrieben:Hallo Gollum83,
wenn du bei der Gelegenheit auch noch herausfindest wie man dem Stylesheet beibringt Numerische- und Datums- Felder auch als solche an Excel zu übergeben wäre das sehr schön. Denn mit den Standard Stylesheets, weder aus der Addon-DB noch aus der Standard-DB ( die bringt noch lustigere Ergebnisse) funktioniert das leider nicht wirklich .
Gruß, Fiddi
28. Januar 2009 20:29
29. Januar 2009 09:38
29. Januar 2009 09:46
29. Januar 2009 10:02
29. Januar 2009 10:46
29. Januar 2009 11:12
29. Januar 2009 12:40
29. Januar 2009 14:45
<xsl:template name="output-body">
<w:body>
<xsl:call-template name="output-section-properties"/>
</w:body>
</xsl:template>
<?xml version="1.0" encoding="UTF-8" ?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
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:output method="xml" encoding="UTF-8" standalone="yes" />
...
</xsl:stylesheet>
<xsl:template match="/">
...
</xsl:template>
...
</xsl:stylesheet>
<xsl:apply-templates select="Object" />
<xsl:template match="Object">
...
</xsl:template>
<xsd:element name="Workbook">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="o:SmartTagType" minOccurs="0" maxOccurs="unbounded" />
<xsd:element ref="o:DocumentProperties" minOccurs="0" />
<xsd:element ref="o:CustomDocumentProperties" minOccurs="0" />
<xsd:element ref="o:OfficeDocumentSettings" minOccurs="0" />
<xsd:element ref="x:ExcelWorkbook" minOccurs="0" />
<xsd:element name="Styles" minOccurs="0">
...
</xsd:element>
<xsd:element name="Names" type="NamesType" minOccurs="0">
...
</xsd:element>
<xsd:element name="Worksheet" type="WorksheetType" minOccurs="0" maxOccurs="unbounded">
...
</xsd:element>
<xsd:element ref="x:PivotCache" minOccurs="0" maxOccurs="unbounded" />
<xsd:element ref="x:Name" minOccurs="0" />
<xsd:element ref="x2:MapInfo" minOccurs="0" maxOccurs="unbounded" />
<xsd:element ref="x2:Binding" minOccurs="0" maxOccurs="unbounded" />
<xsd:element ref="c:ComponentOptions" minOccurs="0" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsl:template match="Object">
<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 select="./Control" />
</Workbook>
</xsl:template>
29. Januar 2009 15:31
29. Januar 2009 17:09
<xsl:template match="Control[@type='TabControl']">
<xsl:apply-templates select="./Control" />
</xsl:template>
match="Control[@type='TabControl']"
<xsl:template match="Control[@type='TabPage']" >
<Worksheet xmlns="urn:schemas-microsoft-com:office:spreadsheet">
<Table>
<xsl:apply-templates select="Row" />
</Table>
</Worksheet>
</xsl:template>
<xsl:template match="Row">
<Row xmlns="urn:schemas-microsoft-com:office:spreadsheet">
<xsl:apply-templates select="Control" />
</Row>
</xsl:template>
<xsl:template match="Control[@type='Label']">
<Cell xmlns="urn:schemas-microsoft-com:office:spreadsheet">
<xsl:attribute name="ss:StyleID">Label</xsl:attribute>
<Data>
<xsl:attribute name="ss:Type">String</xsl:attribute>
<xsl:value-of select="@value"/>
</Data>
</Cell>
</xsl:template>
<xsl:template match="Control[@type='TextBox']">
<Cell xmlns="urn:schemas-microsoft-com:office:spreadsheet">
<xsl:attribute name="ss:StyleID">TextBox</xsl:attribute>
<Data>
<xsl:attribute name="ss:Type">String</xsl:attribute>
<xsl:value-of select="@value"/>
</Data>
</Cell>
</xsl:template>
<xsl:template name="output-Styles">
<Styles xmlns="urn:schemas-microsoft-com:office:spreadsheet">
<Style ss:ID="Label">
<Alignment ss:Horizontal="Left" ss:Vertical="Bottom" ss:WrapText="1"/>
<Font ss:FontName="Verdana" x:Family="Swiss" ss:Size="8" ss:Bold="1"/>
<Interior ss:Color="#C0C0C0" ss:Pattern="Solid"/>
</Style>
<Style ss:ID="TextBox">
<Alignment ss:Horizontal="Left" ss:Vertical="Bottom"/>
<Font ss:FontName="Verdana" x:Family="Swiss"/>
</Style>
</Styles>
</xsl:template>
<xsl:template match="Object">
<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:call-template name="output-Styles" />
<xsl:apply-templates select="./Control" />
</Workbook>
<xsl:template match="Control[@type='TabPage']" >
<Worksheet xmlns="urn:schemas-microsoft-com:office:spreadsheet">
<xsl:attribute name="ss:Name">
<xsl:value-of select="@caption"/>
</xsl:attribute>
<Table>
<xsl:apply-templates select="Row" />
</Table>
</Worksheet>
</xsl:template>
<?xml version="1.0" encoding="UTF-8" ?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
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:output method="xml" encoding="UTF-8" standalone="yes" />
<xsl:template match="/">
<xsl:apply-templates select="Object" />
</xsl:template>
<xsl:template match="Object">
<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:call-template name="output-Styles" />
<xsl:apply-templates select="./Control" />
</Workbook>
</xsl:template>
<xsl:template match="Control[@type='TabControl']">
<xsl:apply-templates select="./Control" />
</xsl:template>
<xsl:template match="Control[@type='TabPage']" >
<Worksheet xmlns="urn:schemas-microsoft-com:office:spreadsheet">
<xsl:attribute name="ss:Name">
<xsl:value-of select="@caption"/>
</xsl:attribute>
<Table>
<xsl:apply-templates select="Row" />
</Table>
</Worksheet>
</xsl:template>
<xsl:template match="Row">
<Row xmlns="urn:schemas-microsoft-com:office:spreadsheet">
<xsl:apply-templates select="Control" />
</Row>
</xsl:template>
<xsl:template match="Control[@type='Label']">
<Cell xmlns="urn:schemas-microsoft-com:office:spreadsheet">
<xsl:attribute name="ss:StyleID">Label</xsl:attribute>
<Data>
<xsl:attribute name="ss:Type">String</xsl:attribute>
<xsl:value-of select="@value"/>
</Data>
</Cell>
</xsl:template>
<xsl:template match="Control[@type='TextBox']">
<Cell xmlns="urn:schemas-microsoft-com:office:spreadsheet">
<xsl:attribute name="ss:StyleID">TextBox</xsl:attribute>
<Data>
<xsl:attribute name="ss:Type">String</xsl:attribute>
<xsl:value-of select="@value"/>
</Data>
</Cell>
</xsl:template>
<xsl:template name="output-Styles">
<Styles xmlns="urn:schemas-microsoft-com:office:spreadsheet">
<Style ss:ID="Label">
<Alignment ss:Horizontal="Left" ss:Vertical="Bottom" ss:WrapText="1"/>
<Font ss:FontName="Verdana" x:Family="Swiss" ss:Size="8" ss:Bold="1"/>
<Interior ss:Color="#C0C0C0" ss:Pattern="Solid"/>
</Style>
<Style ss:ID="TextBox">
<Alignment ss:Horizontal="Left" ss:Vertical="Bottom"/>
<Font ss:FontName="Verdana" x:Family="Swiss"/>
</Style>
</Styles>
</xsl:template>
</xsl:stylesheet>
<xsl:template match="Control[@type='TableBox']">
<Worksheet xmlns="urn:schemas-microsoft-com:office:spreadsheet">
<xsl:attribute name="ss:Name">
<xsl:variable name="TableBoxCaption">
<xsl:value-of select="//Object/@caption"/>
</xsl:variable>
<xsl:value-of select="substring($TableBoxCaption,1,30)"/>
</xsl:attribute>
<Table>
<xsl:apply-templates select="Row" />
</Table>
</Worksheet>
</xsl:template>
29. Januar 2009 17:40
29. Januar 2009 18:31
29. Januar 2009 19:45
29. Januar 2009 23:12
Gollum83 hat geschrieben:Hallo FAFL,
einfach genial. Woher weisst Du das alles....?
30. Januar 2009 11:28