Skip to content

InclusiveNamespaces how to include inclusivenamespace #138

Closed
@SSANSH

Description

@SSANSH

Hi, How I can generate transform definition like with InclusiveNamespaces.

<ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#">
   <InclusiveNamespaces xmlns="http://www.w3.org/2001/10/xml-exc-c14n#" PrefixList="oas v1 v11"/>
 </ds:Transform>

I checked the function SignedXml.prototype.createReferences but I don't see the way to include this definition.

  res += "<" + prefix + "Transforms>"
  for (var t in ref.transforms) {
    if (!ref.transforms.hasOwnProperty(t)) continue;

    var trans = ref.transforms[t]
    var transform = this.findCanonicalizationAlgorithm(trans)
    res += "<" + prefix + "Transform Algorithm=\"" + transform.getAlgorithmName() + "\"/>";
  }

Can you explain how to do and if its doable?

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions