Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
GauriSpears committed Jan 18, 2024
2 parents 8f682f0 + 17c628c commit c440f5b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/signed-xml.ts
Original file line number Diff line number Diff line change
Expand Up @@ -927,12 +927,14 @@ export class SignedXml {
let nodes = xpath.selectWithResolver(ref.xpath ?? "", doc, this.namespaceResolver);

if (!utils.isArrayHasLength(nodes)) {
<<<<<<< HEAD
if (this.xadesQualifyingProperties != null) {
nodes = xpath.selectWithResolver(
ref.xpath ?? "",
new xmldom.DOMParser().parseFromString(this.xadesQualifyingProperties()),
this.namespaceResolver,
);
>>>>>>> 17c628c0bc401c3c80d5129fd7f6757dc0834621
}
if (!utils.isArrayHasLength(nodes)) {
throw new Error(
Expand All @@ -942,6 +944,7 @@ export class SignedXml {
}

for (const node of nodes) {
<<<<<<< HEAD
let addattr = "";
if (node["localName"] === "SignedProperties") {
addattr = ' Type="http://uri.etsi.org/01903#SignedProperties"';
Expand All @@ -952,6 +955,7 @@ export class SignedXml {
const id = this.ensureHasId(node);
ref.uri = id;
res += `<${prefix}Reference URI="#${id}"${addattr}>`;
>>>>>>> 17c628c0bc401c3c80d5129fd7f6757dc0834621
}
res += `<${prefix}Transforms>`;
for (const trans of ref.transforms || []) {
Expand Down

0 comments on commit c440f5b

Please sign in to comment.