RE: abisz.xsl => XML und XSL
"Roger Fischer" <[email protected]> Wed, 11 Dec 2002 16:45:16 +0100
| Newsgroups | gmane.comp.cms.bitflux.general.german |
|---|---|
| Message-ID | <[email protected]> |
XML
===
http://bitflux.eb-wolfbach.ch/abisz/?XML=1
<page type="resultset">
<Section type="row" ID="Section341">
<ID type="cell">341</ID>
<title>
<de type="cell">A bis Z</de>
<en type="cell">A - Z</en>
</title>
<foreignsectionid type="cell">8</foreignsectionid>
<fulluri type="cell">abisz</fulluri>
<fulltitlepath type="cell">web -> Dokusite -> A bis
Z</fulltitlepath>
<Document type="row" ID="Document342">
<ID type="cell">342</ID>
<title type="cell">A bis Z</title>
<rang type="cell">1</rang>
<uri type="cell">abisz</uri>
<AbisZ type="row" ID="AbisZ354">
<ID type="cell">354</ID>
<az>
<keyword type="cell">Anfang</keyword>
<description type="cell">Aller Anfang ist sehr
schwer!</description>
</az>
<created type="cell">2002-12-11 17:00:30</created>
</AbisZ>
<AbisZ type="row" ID="AbisZ356">
<ID type="cell">356</ID>
<az>
<keyword type="cell">Content</keyword>
<description type="cell">Soviel wie viel
Inhalt</description>
</az>
<created type="cell">2002-12-11 17:46:54</created>
</AbisZ>
<AbisZ type="row" ID="AbisZ348">
<ID type="cell">348</ID>
<az>
<keyword type="cell">Zwischenablage</keyword>
<description type="cell">Kein Ende ohne
Zwischenablage</description>
</az>
<created type="cell">2002-12-11 16:25:07</created>
</AbisZ>
</Document>
</Section>
</page>
XSL
===
Achtung:
az_keyword (in der Datenbank) wird zu az/keyword im XML!
>
> <?xml version="1.0" encoding="iso-8859-1" ?>
> <xsl:stylesheet version="1.0"
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
> <xsl:import href="../xsl/master.xsl"/>
> <xsl:output method="html" encoding="iso-8859-1" indent="no"
> doctype-public="-//W3C//DTD HTML 4.0 Transitional//EN"/>
>
> <xsl:include href="../xsl/docbook/html/docbook.xsl" />
> <xsl:include href="../xsl/docbook/common/common.xsl" />
>
> <xsl:include href="../xsl/top_row_main_navigation.xsl" />
> <xsl:include href="../xsl/left_column_navigation.xsl" />
> <xsl:include href="../xsl/right_column_syndication.xsl" />
> <xsl:include href="../xsl/footer.xsl" />
>
>
>
> <xsl:template name="middle_column_main_content">
>
> <td align="left" valign="top">
> <table width="501" border="0" cellspacing="0" cellpadding="0">
> <tr>
> <td></td>
> </tr>
> </table>
> <xsl:for-each select="$thisDocument/AbisZ">
> <table>
> <tr>
> <td colspan="2">
<!-- kann nicht ausgegeben werden, da zurzeit nicht vorhanden im XML (siehe
oben)
> <xsl:value-of select="lang"/><br/>
> <xsl:value-of select="createdby"/><br/>
-->
> <b><xsl:value-of select="az/keyword"/></b><br/>
> <xsl:apply-templates
> select="az/description"/><br/>
> </td>
> </tr>
> <tr>
> <td align="left" colspan="2">
> <br/>
> <img
> src="/images/line_punkt_quer501.gif" width="501"
> height="1" border="0"/>
> <br/>
> </td>
> </tr>
> </table>
> </xsl:for-each>
> </td>
> </xsl:template>
>
> </xsl:stylesheet>
>
>
> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
> depot43
> thomas zobrist
> elisabethenstrassse 43
> 8004 zürich
> tel. 043 322 08 86 (fax 89)