aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--spss.slinterface/test/bildspeicher/bild2.jpgbin0 -> 634 bytes
-rw-r--r--spss.slinterface/test/stylesheet.xsl29
2 files changed, 29 insertions, 0 deletions
diff --git a/spss.slinterface/test/bildspeicher/bild2.jpg b/spss.slinterface/test/bildspeicher/bild2.jpg
new file mode 100644
index 000000000..24e45d182
--- /dev/null
+++ b/spss.slinterface/test/bildspeicher/bild2.jpg
Binary files differ
diff --git a/spss.slinterface/test/stylesheet.xsl b/spss.slinterface/test/stylesheet.xsl
new file mode 100644
index 000000000..9af3e3cc6
--- /dev/null
+++ b/spss.slinterface/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>