+
    i<                     ~    R t ^ RIHt ^ RIHt RR./tR tR tR t]! RR7      R 4       t	]! RR7      RR	 l4       t
R
# )zModule with some functions for MathML, like transforming MathML
content in MathML presentation.

To use this module, you will need lxml.
)Path)doctest_depends_onlxmlc                 "    R V ,           R,           # )z<math xmlns:mml="http://www.w3.org/1998/Math/MathML"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://www.w3.org/1998/Math/MathML
        http://www.w3.org/Math/XMLSchema/mathml2/mathml2.xsd">z</math> )ss   &]/var/www/html/photoedit/myenv/lib/python3.14/site-packages/sympy/utilities/mathml/__init__.pyadd_mathml_headersr	      s(    B EFF IRR R    c                     ^ RI pVP                  R8  d,   ^ RIHp V! V 4      P	                  V4      P                  4       # ^ RIHp V! W4      # )    N)files)read_binary)   
   )sysversion_infoimportlib.resourcesr   joinpath
read_bytesr   )pkgnamefilenamer   r   r   s   &&   r   _read_binaryr      sD    
7"-W~&&x0;;== 	47--r
   c                     V R 8X  d   Rp MV R8X  d   Rp M	V R8X  d   Rp V R9   d   \        RV 4      pV# \        V 4      P                  4       pV# )mathml/data/simple_mmlctop.xslsimple_mmlctop.xslmathml/data/mmlctop.xslmmlctop.xslzmathml/data/mmltex.xsl
mmltex.xslzsympy.utilities.mathml.data)r   r   r   )r   r   r   )xslxslbytess   & r   	_read_xslr!   #   sb    
.."	)	)	(	(
AA =sC O 9'')Or
   )modulesc                   ^ RI Hp VP                  RR7      pVP                  P                  pVP                  \        V4      VR7      pVP                  WTR7      pVP                  WR7      pV! V4      p\        V4      pV# )a  Apply a xsl to a MathML string.

Parameters
==========

mml
    A string with MathML code.
xsl
    A string giving the name of an xsl (xml stylesheet) file which can be
    found in sympy/utilities/mathml/data. The following files are supplied
    with SymPy:

    - mmlctop.xsl
    - mmltex.xsl
    - simple_mmlctop.xsl

    Alternatively, a full path to an xsl file can be given.

Examples
========

>>> from sympy.utilities.mathml import apply_xsl
>>> xsl = 'simple_mmlctop.xsl'
>>> mml = '<apply> <plus/> <ci>a</ci> <ci>b</ci> </apply>'
>>> res = apply_xsl(mml,xsl)
>>> print(res)
<?xml version="1.0"?>
<mrow xmlns="http://www.w3.org/1998/Math/MathML">
  <mi>a</mi>
  <mo> + </mo>
  <mi>b</mi>
</mrow>
)etreeF)resolve_entities)parser)access_control)	r   r$   	XMLParserXSLTAccessControlDENY_ALLXMLr!   XSLTstr)	mmlr   r$   r&   acr   	transformdocresults	   &&       r   	apply_xslr3   4   sv    F __e_4F		 	 	)	)B		)C.	0A

1
0I
))C)
'Cs^FFAHr
   c                    V P                  R4      '       g   \        V 4      p V'       d   \        V R4      # \        V R4      # )aN  Transforms a document in MathML content (like the one that sympy produces)
in one document in MathML presentation, more suitable for printing, and more
widely accepted

Examples
========

>>> from sympy.utilities.mathml import c2p
>>> mml = '<apply> <exp/> <cn>2</cn> </apply>'
>>> c2p(mml,simple=True) != c2p(mml,simple=False)
True

z<mathr   r   )
startswithr	   r3   )r.   simples   &&r   c2pr7   d   s<      >>'"" %>??S344r
   N)r3   r7   )r   )F)__doc__pathlibr   sympy.utilities.decoratorr   __doctest_requires__r	   r   r!   r3   r7   r   r
   r   <module>r<      sd     8 -vh7 R
." I&, ',^ I&5 '5r
   