[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

  • From: "http://www.pas-world.com" <dev001@p...>
  • To: xml-dev@l...
  • Date: Mon, 19 Nov 2007 18:15:15 +0100

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!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.