re-implement xslt process for MSXML4 to compatible with libxslt on Mac