aboutsummaryrefslogtreecommitdiff
path: root/spss.slinterface/pages/test/stylesheet.xsl
diff options
context:
space:
mode:
authorgregor <gregor@d688527b-c9ab-4aba-bd8d-4036d912da1d>2006-06-26 15:01:31 +0000
committergregor <gregor@d688527b-c9ab-4aba-bd8d-4036d912da1d>2006-06-26 15:01:31 +0000
commit3e5304a0062ba4c4a3dcec0212dfba09d939294b (patch)
tree5be06604b7936bf6b755acebeae8e66c60aa993e /spss.slinterface/pages/test/stylesheet.xsl
parentf454209d2ea7e91284668c2f992631e6dfc30445 (diff)
downloadmoa-id-spss-3e5304a0062ba4c4a3dcec0212dfba09d939294b.tar.gz
moa-id-spss-3e5304a0062ba4c4a3dcec0212dfba09d939294b.tar.bz2
moa-id-spss-3e5304a0062ba4c4a3dcec0212dfba09d939294b.zip
Testanwendung überarbeitet (übersichtlicheres Layout, dynamische Generierung der enthaltenen Links).
git-svn-id: https://joinup.ec.europa.eu/svn/moa-idspss/trunk@719 d688527b-c9ab-4aba-bd8d-4036d912da1d
Diffstat (limited to 'spss.slinterface/pages/test/stylesheet.xsl')
-rw-r--r--spss.slinterface/pages/test/stylesheet.xsl29
1 files changed, 29 insertions, 0 deletions
diff --git a/spss.slinterface/pages/test/stylesheet.xsl b/spss.slinterface/pages/test/stylesheet.xsl
new file mode 100644
index 000000000..9af3e3cc6
--- /dev/null
+++ b/spss.slinterface/pages/test/stylesheet.xsl
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?xmlspysamplexml e:\cio\projekte\erecht\beispiele\xmlDokument.xml?>
+<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:inst="urn:instance">
+ <xsl:output encoding="UTF-8" method="xml" indent="yes"/>
+ <xsl:template match="/inst:XMLDarstellung">
+ <html xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <title>HTML-Darstellung</title>
+ </head>
+ <body>
+ <p>
+ <xsl:for-each select="child::node()">
+ <xsl:choose>
+ <xsl:when test="./self::text()">
+ <xsl:value-of select="."/>
+ </xsl:when>
+ <xsl:when test="./self::inst:Bild">
+ <img>
+ <xsl:attribute name="src"><xsl:value-of select="./@Reference"/></xsl:attribute>
+ <xsl:attribute name="alt">alternative text</xsl:attribute>
+ </img>
+ </xsl:when>
+ </xsl:choose>
+ </xsl:for-each>
+ </p>
+ </body>
+ </html>
+ </xsl:template>
+</xsl:stylesheet>