[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]
Re: [xml-dev] XML and XSLT with X509 signature in one file
- From: "http://www.pas-world.com" <dev001@pas-world.com>
- To: xml-dev@lists.xml.org
- Date: Mon, 19 Nov 2007 18:15:15 +0100
Hello I need that in only one file that a web browser can render,
digital signed with certificate X509 document. Something like this (XSL
+ XML + Signature in one file):
<?xml version="1.0"?>
<?xml-stylesheet type='text/xsl' href='#'?>
<xsl:stylesheet
xmlns:ds="http://www.w3.org/2000/09/xmldsig#"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0"
xmlns:z="XmLcode"
exclude-result-prefixes="z">
<!-- XSL transformation here -->
<xsl:output method="html"/>
<xsl:template match="z:Root" >
<html>
<body>
<h1>
<xsl:text> </xsl:text>
</h1>
</body>
</html>
</xsl:template>
<z:Root>
<ds:Signature>
<ds:SignedInfo>
<ds:CanonicalizationMethod
Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315"></ds:CanonicalizationMethod>
<ds:SignatureMethod
Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"></ds:SignatureMethod>
<ds:Reference URI="">
<ds:Transforms>
<ds:Transform
Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature"></ds:Transform>
<ds:Transform
Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315#WithComments"></ds:Transform>
</ds:Transforms>
<ds:DigestMethod
Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"></ds:DigestMethod>
<ds:DigestValue></ds:DigestValue>
</ds:Reference>
</ds:SignedInfo>
<ds:SignatureValue>
</ds:SignatureValue>
<ds:KeyInfo>
<ds:X509Data>
<ds:X509Certificate>
Certificate data.............
</ds:X509Certificate>
</ds:X509Data>
</ds:KeyInfo>
</ds:Signature>
</z:Root>
</xsl:stylesheet>
But this should work in all parsers.
El dom, 18-11-2007 a las 22:18 -0500, Richard Salz escribió:
> Sorr, but I don't understand your question.
>
> A single XML signature can cover multiple documents, each one in a
> separate Reference element. They don't have to be XML, either. So you
> can
> have a single signature with references for the XML, XSLT, and the
> CSS.
--
Publicidad http://www.pas-world.com
[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]