xml transform

Transform XML documents using XSLT. More information: http://xmlstar.sourceforge.net/docs.php.

xml transform path/to/stylesheet.xsl -p "Count='count(/xml/table/rec)'" -s Text="Count=" path/to/input.xml|URI

xml transform --help