diff options
author | gregor <gregor@d688527b-c9ab-4aba-bd8d-4036d912da1d> | 2006-06-26 15:01:31 +0000 |
---|---|---|
committer | gregor <gregor@d688527b-c9ab-4aba-bd8d-4036d912da1d> | 2006-06-26 15:01:31 +0000 |
commit | 3e5304a0062ba4c4a3dcec0212dfba09d939294b (patch) | |
tree | 5be06604b7936bf6b755acebeae8e66c60aa993e /spss.slinterface/pages/test | |
parent | f454209d2ea7e91284668c2f992631e6dfc30445 (diff) | |
download | moa-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')
-rw-r--r-- | spss.slinterface/pages/test/bildspeicher/bild2.jpg | bin | 0 -> 634 bytes | |||
-rw-r--r-- | spss.slinterface/pages/test/dataURL.jsp | 48 | ||||
-rw-r--r-- | spss.slinterface/pages/test/forms/verify.default.jsp | 99 | ||||
-rw-r--r-- | spss.slinterface/pages/test/forms/verify.slxhtml.jsp | 99 | ||||
-rw-r--r-- | spss.slinterface/pages/test/stylesheet.xsl | 29 |
5 files changed, 264 insertions, 11 deletions
diff --git a/spss.slinterface/pages/test/bildspeicher/bild2.jpg b/spss.slinterface/pages/test/bildspeicher/bild2.jpg Binary files differnew file mode 100644 index 000000000..24e45d182 --- /dev/null +++ b/spss.slinterface/pages/test/bildspeicher/bild2.jpg diff --git a/spss.slinterface/pages/test/dataURL.jsp b/spss.slinterface/pages/test/dataURL.jsp index c2b62697f..affef5022 100644 --- a/spss.slinterface/pages/test/dataURL.jsp +++ b/spss.slinterface/pages/test/dataURL.jsp @@ -1,4 +1,4 @@ -<%@ page contentType="text/html; charset=UTF-8" %>
+<%@ page contentType="text/html; ISO-8859-1" %>
<jsp:useBean
id="dataURLResult"
@@ -6,13 +6,39 @@ </jsp:useBean>
<html>
- <head>
- <head><title><jsp:getProperty name="dataURLResult" property="title"/></title></head>
- </head>
- <body>
- <h1>Content-Type</h1>
- <p><pre><jsp:getProperty name="dataURLResult" property="contentType"/></pre></p>
- <h1>Content</h1>
- <p><pre><jsp:getProperty name="dataURLResult" property="content"/></pre></p>
- </body>
-</html>
\ No newline at end of file +<head>
+ <title>Testanwendung f�r MOA SL - Resultat</title>
+</head>
+ <body>
+<form action="" method="post">
+<table width="800px" align="center">
+<tr>
+<td>
+<h1 align="center">Testanwendung f�r MOA SL - Resultat</h1>
+<p align="center">Die folgenden Daten wurden von MOA SL als Ergebnis gesendet.</p>
+<table bgcolor="#eeeeee" width="790px" border="1" cellpadding="3">
+<tr>
+<td>Content-Type</td>
+<td>
+<textarea name="DataURL" cols="80" rows="1">
+<jsp:getProperty name="dataURLResult" property="contentType"/>
+</textarea>
+<td>
+</tr>
+<tr>
+<td>Inhalt</td>
+<td>
+<textarea name="XMLRequest" cols=80 rows=20>
+<jsp:getProperty name="dataURLResult" property="content"/>
+</textarea>
+</td>
+</tr>
+</table>
+<p align="center">
+</p>
+</td>
+</tr>
+</table>
+</form>
+</body>
+</html>
diff --git a/spss.slinterface/pages/test/forms/verify.default.jsp b/spss.slinterface/pages/test/forms/verify.default.jsp new file mode 100644 index 000000000..5392e0df8 --- /dev/null +++ b/spss.slinterface/pages/test/forms/verify.default.jsp @@ -0,0 +1,99 @@ +<%@ page contentType="text/html; ISO-8859-1" %> + +<jsp:useBean + id="initPropertiesBean" + class="at.gv.egovernment.moa.spss.slinterface.beans.InitPropertiesBean" scope="application"> +</jsp:useBean> + +<html> +<head> + <title>Testanwendung f�r MOA SL</title> +</head> + <body> +<form action="<% out.write(initPropertiesBean.getMOASLWebAppURL() + request.getContextPath()); %>/http-security-layer-request" method="post"> +<table width="800px" align="center"> +<tr> +<td> +<h1 align="center">Testanwendung f�r MOA SL</h1> +<p align="center">Das signierte Dokument ist kein Security-Layer XHTML Dokument.</p> +<table bgcolor="#eeeeee" width="790px" border="1" cellpadding="3"> +<tr> +<td>Signaturpr�fungsrequest</td> +<td> +<textarea name="XMLRequest" cols=80 rows=20> +<?xml version="1.0" encoding="UTF-8"?> +<VerifyXMLSignatureRequest xmlns="http://www.buergerkarte.at/namespaces/securitylayer/20031231#" xmlns:dsig="http://www.w3.org/2000/09/xmldsig#" xmlns:sl10="http://www.buergerkarte.at/namespaces/securitylayer/20020225#" xmlns:sl11="http://www.buergerkarte.at/namespaces/securitylayer/20020831#" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> + <SignatureInfo> + <SignatureEnvironment> + <XMLContent> +<dsig:Signature Id="signature-1-1" xmlns:dsig="http://www.w3.org/2000/09/xmldsig#"><dsig:SignedInfo><dsig:CanonicalizationMethod Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315"/><dsig:SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"/><dsig:Reference Id="reference-1-1" URI="xmlDocument.xml"><dsig:Transforms><dsig:Transform Algorithm="http://www.w3.org/TR/1999/REC-xslt-19991116"><xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> + <xsl:import href="stylesheet.xsl"/> + </xsl:stylesheet></dsig:Transform><dsig:Transform Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315"/></dsig:Transforms><dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/><dsig:DigestValue>qWbsEi/iFwXaXZvCBanbFu7poqQ=</dsig:DigestValue></dsig:Reference><dsig:Reference Id="reference-1-2" URI="bild1.gif"><dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/><dsig:DigestValue>mCGwDv9ku7uHVbL4bkNC8o52LrE=</dsig:DigestValue></dsig:Reference><dsig:Reference Id="reference-1-3" URI="bild2.jpg"><dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/><dsig:DigestValue>Jc6oVCCGjgvFFYQR6jklGkGL4l4=</dsig:DigestValue></dsig:Reference><dsig:Reference Type="http://www.buergerkarte.at/specifications/Securitylayer/20020225#SignatureManifest" URI="#manifest-1-1"><dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/><dsig:DigestValue>8HbxBKILDNRUeewGlObTKbBsB18=</dsig:DigestValue></dsig:Reference><dsig:Reference Type="http://uri.etsi.org/01903/v1.1.1#SignedProperties" URI="#xmlns(etsi=http://uri.etsi.org/01903/v1.1.1%23)%20xpointer(id('etsi-signed-1-1')/child::etsi:QualifyingProperties/child::etsi:SignedProperties)"><dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/><dsig:DigestValue>hgityh9+8rEQjPzU0+6R/6rol3k=</dsig:DigestValue></dsig:Reference></dsig:SignedInfo><dsig:SignatureValue>AfkIFItBFm9bTyciEQFwd+nx/5wfuDzAOPhfgEl8s8OVeyL/ZH99+4inrDTcrM6E +yhnKu/OZYfBdZicia9SGwXtnXabaUrOu/yMoxyh0DYoJY0ujLZFr6ywg4vZkM6X3 +tif5UrwAlSqnfJquT203GqpOS6euTZW86RRnvdR/4Jc=</dsig:SignatureValue><dsig:KeyInfo><dsig:X509Data><dsig:X509Certificate>MIID1zCCA0SgAwIBAgIGAPMkfTU7MAkGBSsOAwIdBQAwgawxCzAJBgNVBAYTAkFU +MSYwJAYDVQQKEx1HUkFaIFVOSVZFUlNJVFkgT0YgVEVDSE5PTE9HWTFHMEUGA1UE +CxM+SW5zaXR1dGUgZm9yIEFwcGxpZWQgSW5mb3JtYXRpb24gUHJvY2Vzc2luZyBh +bmQgQ29tbXVuaWNhdGlvbnMxFTATBgNVBAsTDElBSUsgVGVzdCBDQTEVMBMGA1UE +AxMMSUFJSyBUZXN0IENBMB4XDTAzMDIwMzE2MjA1NVoXDTAzMTIzMDIyNTkzMFow +g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Manifest Id="manifest-1-1"><dsig:Reference URI="stylesheet.xsl"><dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/><dsig:DigestValue>/KjC84jSkt2ZHN35vNKXBvI2p80=</dsig:DigestValue></dsig:Reference></dsig:Manifest></dsig:Object><dsig:Object Id="etsi-signed-1-1"><etsi:QualifyingProperties Target="#signature-1-1" xmlns:etsi="http://uri.etsi.org/01903/v1.1.1#"><etsi:SignedProperties><etsi:SignedSignatureProperties><etsi:SigningTime>2003-12-03T11:51:13</etsi:SigningTime><etsi:SigningCertificate><etsi:Cert><etsi:CertDigest><etsi:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/><etsi:DigestValue>dL59VDpBsujcngd207z0ohPl1/U=</etsi:DigestValue></etsi:CertDigest><etsi:IssuerSerial><dsig:X509IssuerName>CN=IAIK Test CA,OU=IAIK Test CA,OU=Insitute for Applied Information Processing and Communications,O=GRAZ UNIVERSITY OF TECHNOLOGY,C=AT</dsig:X509IssuerName><dsig:X509SerialNumber>1044289238331</dsig:X509SerialNumber></etsi:IssuerSerial></etsi:Cert></etsi:SigningCertificate><etsi:SignaturePolicyIdentifier><etsi:SignaturePolicyImplied/></etsi:SignaturePolicyIdentifier></etsi:SignedSignatureProperties><etsi:SignedDataObjectProperties><etsi:DataObjectFormat ObjectReference="#reference-1-1"><etsi:MimeType>text/html</etsi:MimeType></etsi:DataObjectFormat><etsi:DataObjectFormat ObjectReference="#reference-1-2"><etsi:MimeType>img/gif</etsi:MimeType></etsi:DataObjectFormat><etsi:DataObjectFormat ObjectReference="#reference-1-3"><etsi:MimeType>img/jpg</etsi:MimeType></etsi:DataObjectFormat></etsi:SignedDataObjectProperties></etsi:SignedProperties></etsi:QualifyingProperties></dsig:Object></dsig:Signature> + </XMLContent> + </SignatureEnvironment> + <SignatureLocation>/dsig:Signature</SignatureLocation> + </SignatureInfo> + <Supplement> + <Content Reference="stylesheet.xsl"> + <LocRefContent><% out.write(initPropertiesBean.getMOASLWebAppURL() + request.getContextPath()); %>/pages/test/stylesheet.xsl</LocRefContent> + </Content> + </Supplement> + <Supplement> + <Content Reference="xmlDocument.xml"> + <XMLContent> + <XMLDarstellung xmlns="urn:instance">Etwas Text. Dann kommt das erste Bild.<Bild Reference="bild1.gif"/>Wieder etwas Text. Dann kommt das zweite Bild.<Bild Reference="bild2.jpg"/>Und noch ein wenig finaler Text.</XMLDarstellung> + </XMLContent> + </Content> + </Supplement> + <Supplement> + <Content Reference="bild1.gif"> + <Base64Content>R0lGODlhHgAPAJEAAAD/AAAAAAAAAAAAACwAAAAAHgAPAAAIJAABCBxIsKDBgwgTKlzIsKHD +hxAjSpxIsaLFixgzatzIsePDgAA7</Base64Content> + </Content> + </Supplement> + <Supplement> + <Content Reference="bild2.jpg"> + <LocRefContent><% out.write(initPropertiesBean.getMOASLWebAppURL() + request.getContextPath()); %>/pages/test/bildspeicher/bild2.jpg</LocRefContent> + </Content> + </Supplement> +</VerifyXMLSignatureRequest> +</textarea> +</td> +</tr> +<tr> +<td>DataURL</td> +<td><input name="DataURL" value="<% out.write(initPropertiesBean.getMOASLWebAppURL() + request.getContextPath()); %>/dataurl" size=70/> +</td> +</tr> +</table> +<p align="center"> +<input type="submit"> +</p> +</td> +</tr> +</table> +</form> +</body> +</html> diff --git a/spss.slinterface/pages/test/forms/verify.slxhtml.jsp b/spss.slinterface/pages/test/forms/verify.slxhtml.jsp new file mode 100644 index 000000000..2dfd90a5b --- /dev/null +++ b/spss.slinterface/pages/test/forms/verify.slxhtml.jsp @@ -0,0 +1,99 @@ +<%@ page contentType="text/html; ISO-8859-1" %> + +<jsp:useBean + id="initPropertiesBean" + class="at.gv.egovernment.moa.spss.slinterface.beans.InitPropertiesBean" scope="application"> +</jsp:useBean> + +<html> +<head> + <title>Testanwendung f�r MOA SL</title> +</head> + <body> +<form action="<% out.write(initPropertiesBean.getMOASLWebAppURL() + request.getContextPath()); %>/http-security-layer-request" method="post"> +<table width="800px" align="center"> +<tr> +<td> +<h1 align="center">Testanwendung f�r MOA SL</h1> +<p align="center">Das signierte Dokument ist ein Security-Layer XHTML Dokument.</p> +<table bgcolor="#eeeeee" width="790px" border="1" cellpadding="3"> +<tr> +<td>Signaturpr�fungsrequest</td> +<td> +<textarea name="XMLRequest" cols=80 rows=20> +<?xml version="1.0" encoding="UTF-8"?> +<VerifyXMLSignatureRequest xmlns="http://www.buergerkarte.at/namespaces/securitylayer/20031231#" xmlns:dsig="http://www.w3.org/2000/09/xmldsig#" xmlns:sl10="http://www.buergerkarte.at/namespaces/securitylayer/20020225#" xmlns:sl11="http://www.buergerkarte.at/namespaces/securitylayer/20020831#" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> + <SignatureInfo> + <SignatureEnvironment> + <XMLContent> +<dsig:Signature Id="signature-1-1" xmlns:dsig="http://www.w3.org/2000/09/xmldsig#"><dsig:SignedInfo><dsig:CanonicalizationMethod Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315"/><dsig:SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"/><dsig:Reference Id="reference-1-1" URI="xmlDocument.xml"><dsig:Transforms><dsig:Transform Algorithm="http://www.w3.org/TR/1999/REC-xslt-19991116"><xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> + <xsl:import href="stylesheet.xsl"/> + </xsl:stylesheet></dsig:Transform><dsig:Transform Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315"/></dsig:Transforms><dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/><dsig:DigestValue>qWbsEi/iFwXaXZvCBanbFu7poqQ=</dsig:DigestValue></dsig:Reference><dsig:Reference Id="reference-1-2" Type="http://www.buergerkarte.at/specifications/Security-Layer/20031113?Name=SignedImage&amp;InstanceDocRef=0" URI="bild1.gif"><dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/><dsig:DigestValue>mCGwDv9ku7uHVbL4bkNC8o52LrE=</dsig:DigestValue></dsig:Reference><dsig:Reference Id="reference-1-3" Type="http://www.buergerkarte.at/specifications/Security-Layer/20031113?Name=SignedImage&amp;InstanceDocRef=0" URI="bild2.jpg"><dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/><dsig:DigestValue>Jc6oVCCGjgvFFYQR6jklGkGL4l4=</dsig:DigestValue></dsig:Reference><dsig:Reference Type="http://www.buergerkarte.at/specifications/Securitylayer/20020225#SignatureManifest" URI="#manifest-1-1"><dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/><dsig:DigestValue>8HbxBKILDNRUeewGlObTKbBsB18=</dsig:DigestValue></dsig:Reference><dsig:Reference Type="http://uri.etsi.org/01903/v1.1.1#SignedProperties" URI="#xmlns(etsi=http://uri.etsi.org/01903/v1.1.1%23)%20xpointer(id('etsi-signed-1-1')/child::etsi:QualifyingProperties/child::etsi:SignedProperties)"><dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/><dsig:DigestValue>QixjzDGm3YVNnrWBVdkNLlp2Pmk=</dsig:DigestValue></dsig:Reference></dsig:SignedInfo><dsig:SignatureValue>wAt9rJy+7xx4b5VcMyGC9iwAtK+bHpMrqsiz5fLyXQJ11Iq+ME/yHhglv3u3cp6d +BCsNAuMacqEM0qGJ2xoIaxVPS5QIPJoF6KuS7t4rPGRW9g04EgE8xyRkH6qyxP9J +ilfBOISA/1GJcEejFeJdOkTLFrH7toE+IqB2fEl7eKs=</dsig:SignatureValue><dsig:KeyInfo><dsig:X509Data><dsig:X509Certificate>MIID1zCCA0SgAwIBAgIGAPMkfTU7MAkGBSsOAwIdBQAwgawxCzAJBgNVBAYTAkFU +MSYwJAYDVQQKEx1HUkFaIFVOSVZFUlNJVFkgT0YgVEVDSE5PTE9HWTFHMEUGA1UE +CxM+SW5zaXR1dGUgZm9yIEFwcGxpZWQgSW5mb3JtYXRpb24gUHJvY2Vzc2luZyBh +bmQgQ29tb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rjvpzGGKjqoc3X8v4rzMo6MBRNluu0m3y1pktT +V/q4aiWD/nbGXdrn/AoKAvOSAQ3Qe6X+dT/1</dsig:X509Certificate></dsig:X509Data></dsig:KeyInfo><dsig:Object><dsig:Manifest Id="manifest-1-1"><dsig:Reference URI="stylesheet.xsl"><dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/><dsig:DigestValue>/KjC84jSkt2ZHN35vNKXBvI2p80=</dsig:DigestValue></dsig:Reference></dsig:Manifest></dsig:Object><dsig:Object Id="etsi-signed-1-1"><etsi:QualifyingProperties Target="#signature-1-1" xmlns:etsi="http://uri.etsi.org/01903/v1.1.1#"><etsi:SignedProperties><etsi:SignedSignatureProperties><etsi:SigningTime>2003-12-03T10:13:28</etsi:SigningTime><etsi:SigningCertificate><etsi:Cert><etsi:CertDigest><etsi:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/><etsi:DigestValue>dL59VDpBsujcngd207z0ohPl1/U=</etsi:DigestValue></etsi:CertDigest><etsi:IssuerSerial><dsig:X509IssuerName>CN=IAIK Test CA,OU=IAIK Test CA,OU=Insitute for Applied Information Processing and Communications,O=GRAZ UNIVERSITY OF TECHNOLOGY,C=AT</dsig:X509IssuerName><dsig:X509SerialNumber>1044289238331</dsig:X509SerialNumber></etsi:IssuerSerial></etsi:Cert></etsi:SigningCertificate><etsi:SignaturePolicyIdentifier><etsi:SignaturePolicyImplied/></etsi:SignaturePolicyIdentifier></etsi:SignedSignatureProperties><etsi:SignedDataObjectProperties><etsi:DataObjectFormat ObjectReference="#reference-1-1"><etsi:MimeType>text/html</etsi:MimeType></etsi:DataObjectFormat><etsi:DataObjectFormat ObjectReference="#reference-1-2"><etsi:MimeType>img/gif</etsi:MimeType></etsi:DataObjectFormat><etsi:DataObjectFormat ObjectReference="#reference-1-3"><etsi:MimeType>img/jpg</etsi:MimeType></etsi:DataObjectFormat></etsi:SignedDataObjectProperties></etsi:SignedProperties></etsi:QualifyingProperties></dsig:Object></dsig:Signature> + </XMLContent> + </SignatureEnvironment> + <SignatureLocation>/dsig:Signature</SignatureLocation> + </SignatureInfo> + <Supplement> + <Content Reference="stylesheet.xsl"> + <LocRefContent><% out.write(initPropertiesBean.getMOASLWebAppURL() + request.getContextPath()); %>/pages/test/stylesheet.xsl</LocRefContent> + </Content> + </Supplement> + <Supplement> + <Content Reference="xmlDocument.xml"> + <XMLContent> + <XMLDarstellung xmlns="urn:instance">Etwas Text. Dann kommt das erste Bild.<Bild Reference="bild1.gif"/>Wieder etwas Text. Dann kommt das zweite Bild.<Bild Reference="bild2.jpg"/>Und noch ein wenig finaler Text.</XMLDarstellung> + </XMLContent> + </Content> + </Supplement> + <Supplement> + <Content Reference="bild1.gif"> + <Base64Content>R0lGODlhHgAPAJEAAAD/AAAAAAAAAAAAACwAAAAAHgAPAAAIJAABCBxIsKDBgwgTKlzIsKHD +hxAjSpxIsaLFixgzatzIsePDgAA7</Base64Content> + </Content> + </Supplement> + <Supplement> + <Content Reference="bild2.jpg"> + <LocRefContent><% out.write(initPropertiesBean.getMOASLWebAppURL() + request.getContextPath()); %>/pages/test/bildspeicher/bild2.jpg</LocRefContent> + </Content> + </Supplement> +</VerifyXMLSignatureRequest> +</textarea> +</td> +</tr> +<tr> +<td>DataURL</td> +<td><input name="DataURL" value="<% out.write(initPropertiesBean.getMOASLWebAppURL() + request.getContextPath()); %>/dataurl" size=70/> +</td> +</tr> +</table> +<p align="center"> +<input type="submit"> +</p> +</td> +</tr> +</table> +</form> +</body> +</html> 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> |