Re: [xmlsec] Emailing: tmpl-EPM-sign-stylesheet.xml
Great! Thanks for posting your results to the list. Hope this would help someone in the future! Aleksey ___ xmlsec mailing list [EMAIL PROTECTED] http://www.aleksey.com/mailman/listinfo/xmlsec
RE: [xmlsec] Emailing: tmpl-EPM-sign-stylesheet.xml
Aleksey, The following stylesheet import works fine. Verified with --store-references pre-digest buffer. Thanks to Rich as well. http://www.w3.org/TR/1999/REC-xslt-19991116";> http://www.w3.org/1999/XSL/Transform"; version="1.0"> http://www.w3.org/2000/09/xmldsig#sha1"/> Cheers, Ed -Original Message- From: Edward Shallow [mailto:[EMAIL PROTECTED] Sent: September 7, 2003 9:45 PM To: '[EMAIL PROTECTED]' I'll try it and let you know tomorrow. Thanks for the quick response Aleksey and Rich. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Aleksey Sanin Sent: September 7, 2003 9:41 PM To: Edward Shallow Cc: [EMAIL PROTECTED] >I am not reporting a problem here... > Sorry, I got it wrong way :( >I assume xsl:include and xsl:import (as Rich pointed) out are supported >within XMLSec (libxslt) ? > > Both are defenitly supported by libxslt, I used them myself :) But I never tried it with xmlsec. I would expect it to work and if it does not then it's a bug (which have to be fixed) :) Aleksey ___ xmlsec mailing list [EMAIL PROTECTED] http://www.aleksey.com/mailman/listinfo/xmlsec ___ xmlsec mailing list [EMAIL PROTECTED] http://www.aleksey.com/mailman/listinfo/xmlsec
RE: [xmlsec] Emailing: tmpl-EPM-sign-stylesheet.xml
I'll try it and let you know tomorrow. Thanks for the quick response Aleksey and Rich. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Aleksey Sanin Sent: September 7, 2003 9:41 PM To: Edward Shallow Cc: [EMAIL PROTECTED] >I am not reporting a problem here... > Sorry, I got it wrong way :( >I assume xsl:include and xsl:import (as Rich pointed) out are supported >within XMLSec (libxslt) ? > > Both are defenitly supported by libxslt, I used them myself :) But I never tried it with xmlsec. I would expect it to work and if it does not then it's a bug (which have to be fixed) :) Aleksey ___ xmlsec mailing list [EMAIL PROTECTED] http://www.aleksey.com/mailman/listinfo/xmlsec ___ xmlsec mailing list [EMAIL PROTECTED] http://www.aleksey.com/mailman/listinfo/xmlsec
Re: [xmlsec] Emailing: tmpl-EPM-sign-stylesheet.xml
I am not reporting a problem here... Sorry, I got it wrong way :( I assume xsl:include and xsl:import (as Rich pointed) out are supported within XMLSec (libxslt) ? Both are defenitly supported by libxslt, I used them myself :) But I never tried it with xmlsec. I would expect it to work and if it does not then it's a bug (which have to be fixed) :) Aleksey ___ xmlsec mailing list [EMAIL PROTECTED] http://www.aleksey.com/mailman/listinfo/xmlsec
RE: [xmlsec] Emailing: tmpl-EPM-sign-stylesheet.xml
Yes Rich, this is what I meant. Thanks. Yes, Aleksey I had already tried it with xsltproc without any problems, both referenced and not. I am not reporting a problem here, I am asking for guidance on how to externally reference the stylesheet (URI, import, etc ...) from within the sign template. I assume xsl:include and xsl:import (as Rich pointed) out are supported within XMLSec (libxslt) ? Ed -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Aleksey Sanin Sent: September 7, 2003 9:09 PM To: Edward Shallow Cc: [EMAIL PROTECTED] I am not sure I clear understand what do you mean by this because "books.xml" file was not referenced anywhere in your message and I just don't understand how is this related to signatures. BTW, have you tried to run your xml file with xsltproc? I am sure it's able to handle construction because it is widely used in docbook. It would be great if you can either provide an example of a standalone xsl template that does not work as you expect or an example of a signature template that does not work plus a standalone xsl template that does work. This would greatly help with locating and fixing this problem :) Aleksey >Simply adding ... > > > >... as the 1st line in books.xml doesn't do it. I also tried a href to >the stylesheet in several places both in the template and in the doc >without success. > > > > ___ xmlsec mailing list [EMAIL PROTECTED] http://www.aleksey.com/mailman/listinfo/xmlsec ___ xmlsec mailing list [EMAIL PROTECTED] http://www.aleksey.com/mailman/listinfo/xmlsec
Re: [xmlsec] Emailing: tmpl-EPM-sign-stylesheet.xml
If I understand him, Ed wants the stylesheet to be external to the signature. You can't do that. See section 6.6.5 of the DSIG spec. In particular, the end of the first paragraph: No special provision is made for the identification of a remote stylesheet at a given URI because it can be communicated via an xsl:include or xsl:import within the stylesheet child of the Transform. -- Rich Salz Chief Security Architect DataPower Technology http://www.datapower.com XS40 XML Security Gateway http://www.datapower.com/products/xs40.html XML Security Overview http://www.datapower.com/xmldev/xmlsecurity.html ___ xmlsec mailing list [EMAIL PROTECTED] http://www.aleksey.com/mailman/listinfo/xmlsec
Re: [xmlsec] Emailing: tmpl-EPM-sign-stylesheet.xml
I am not sure I clear understand what do you mean by this because "books.xml" file was not referenced anywhere in your message and I just don't understand how is this related to signatures. BTW, have you tried to run your xml file with xsltproc? I am sure it's able to handle construction because it is widely used in docbook. It would be great if you can either provide an example of a standalone xsl template that does not work as you expect or an example of a signature template that does not work plus a standalone xsl template that does work. This would greatly help with locating and fixing this problem :) Aleksey Simply adding ... ... as the 1st line in books.xml doesn't do it. I also tried a href to the stylesheet in several places both in the template and in the doc without success. ___ xmlsec mailing list [EMAIL PROTECTED] http://www.aleksey.com/mailman/listinfo/xmlsec