Sunday, July 15, 2012

OSB: how to clean a variable from empty elements and attributes

often the result of a transformation is to create empty non-mandatory elements and variables.
if you are bothered by them, run this:

delete path //*[not(node()) and not(.//@*)] in variable myvar

No comments: