[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: XML and XSLT with X509 signature in one file
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] |
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|