If I understood it correctly, RELAX NG is a tree regular expression language for xml, right?
With "classical" regular expressions, you can also use them to do substitutions, such as:
$ sed -e "s/\([0-9]\)\([a-z]\)/CHAN
This is a sample text with 2a inside.
This is a sample text with CHANGED(a 2) inside.
Is it possible to use RELAX NG to match xml parts and make substitutions?
It would be an advanced version of XSLT.
For instance, I could look for "card" elements that do not have an email, and insert a default one.
Are you aware if a solution for this already exists?