Hacker News new | ask | show | jobs
by jimfuller2014 4379 days ago
there is an approach in xquery,

which could easily be ported to js

https://github.com/jpcs/transform.xq