@doctest_depends_on(modules=('lxml',))
def c2p(mml, simple=False):
 if (not mml.startswith('<math')):
  mml = add_mathml_headers(mml)
 if simple:
  return apply_xsl(mml, 'mathml/data/simple_mmlctop.xsl')
 return apply_xsl(mml, 'mathml/data/mmlctop.xsl')

@ doctest_depends_on ( modules = ( 'lxml' , ) ) def c2p ( mml , simple = False ) : if ( not mml . startswith ( '<math' ) ) : mml = add_mathml_headers ( mml ) if simple : return apply_xsl ( mml , 'mathml/data/simple_mmlctop.xsl' ) return apply_xsl ( mml , 'mathml/data/mmlctop.xsl' )
transforms a document in mathml content in one document in mathml presentation .