- From: <edsimon@xmlsec.com>
- Date: Thu, 2 Aug 2001 09:37:38 -0400
- To: Joseph M. Reagle Jr. <reagle@w3.org>, Dournaee, Blake <bdournaee@rsasecurity.com>
- Cc: IETF/W3C XML-DSig WG <w3c-ietf-xmldsig@w3.org>
>>This would allow me to change the URI without altering the validity of the >>signature. > >If it's being used in the Canonical XML context, remove the '//@*' from: > (//. | //@* | //namespace::*) Correct me if I'm wrong but wouldn't the above remove ALL attributes, not just the one Blake wants removed. I'm not sure that there is an XPath solution but the solution in XSLT would look like this: <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet version="1.0" xmlns:xsl ="http://www.w3.org/1999/XSL/Transform" xmlns:xmlsig="http://www.w3.org/2000/09/xmldsig#"> <!-- Identity transform --> <xsl:template match="@*|node()"> <xsl:copy> <xsl:apply-templates select="@*|node()"/> </xsl:copy> </xsl:template> <!-- Skip the Reference/@URI attribute --> <xsl:template match="xmlsig:Reference/@URI" priority="2"/> </xsl:stylesheet> -------------------------------------------------- Ed Simon XMLsec Inc. - XML Security Training and Consulting
Received on Thursday, 2 August 2001 09:38:51 UTC