1

Is there any short, dependencies free, lightweight code for such canonicalization? Also, I tried to find open source implementations but found only irrelevant ones.

I saw similar question but asker looking for exclusive canonicalization and answerer recommended not pure JS library.

Also, there are nice libraries like deoxxa and xml-crypto but both of them doesn't support inclusive canonicalization. Proof: deoxxa, xml-crypto.

Does anybody know good JS library for inclusive canonicalization, i.e, where

canAlgo!= ...xml-exc-c14n... but canAlgo==...REC-xml-c14n-...

Community
  • 1
  • 1
  • 1
    Recommendation questions are off-topic on Stack Overflow (which you probably know, being a member for two years and all...) – Frédéric Hamidi Apr 28 '15 at 12:29
  • @FrédéricHamidi, but other question by link looks almost similar to mine (after my edits). –  Apr 28 '15 at 12:34
  • 1
    That question was asked in early 2012, more than three years ago. If it were posted today, it would be closed. – Frédéric Hamidi Apr 28 '15 at 12:35
  • @FrédéricHamidi, I edited my question and now I'm not only asking for recommendations but asking for short code sample. Actually, there are few simple rules but applying them in JS may be very painful and requires a lot of boilerplate code. May be somebody wrote such code in the past and may share it with me. For example, Jquery parse xml and further jquery methods usage may help me to aplly some rules but I'm looking for simple code for all rules. May be I have to use 3-4 libraries and somebody know it. –  Apr 28 '15 at 12:44

1 Answers1

1

I modified deoxxa's project(hosted on own gitlab server).

I was too lazy to rename exclusive to inclusive but my .js file performs inclusive.