parameters: (dom, docsfolder, outpath, xslt, suffix)
docstring: Helper function to create markdown file from CLI module description XML file using XSLT
docstring_summary: Helper function to create markdown file from CLI module description XML file using XSLT
docstring_tokens: Helper function to create markdown file from CLI module description XML file using XSLT
function: def _generatemd(dom, docsfolder, outpath, xslt, suffix):
      """Helper function to create markdown file from CLI module description XML file using XSLT"""
      xsltpath = os.path.join(docsfolder, xslt)
      transform = ET.XSLT(ET.parse(xsltpath))
      content = str(transform(dom))
      with open(os.path.join(outpath, os.path.splitext(name)[0]+suffix+'.md'), 'w', encoding='utf8') as outfile:
          outfile.write(content)
function_tokens: def _generatemd ( dom , docsfolder , outpath , xslt , suffix ) : xsltpath = os . path . join ( docsfolder , xslt ) transform = ET . XSLT ( ET . parse ( xsltpath ) ) content = str ( transform ( dom ) ) with open ( os . path . join ( outpath , os . path . splitext ( name ) [ 0 ] + suffix + '.md' ) , 'w' , encoding = 'utf8' ) as outfile : outfile . write ( content )