Ver Mensaje Individual
  #3 (permalink)  
Antiguo 09/11/2004, 10:02
Avatar de romeo77
romeo77
 
Fecha de Ingreso: diciembre-2003
Ubicación: Vete tu a saber...
Mensajes: 65
Antigüedad: 20 años, 4 meses
Puntos: 0
Bien,

Trabajo en un sitio web 'powered by' PHP-MySQL, y ahora necesito interpretar unos comandos xml. Más concretamente, son comandos MathML. Por eso quería saber si puedo embeber comandos xml en las paginas PHP de alguna manera, ó al revés, si en un archivo xml puedo escapar del código xml propiamente dicho para ejecutar comandos PHP.
p.e.: Esto no funciona
Código HTML:
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>ASCIIMathPHP</title>
</head>
<body>
<math xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
  <mrow>
        <msup> <mi>x</mi> <mn>2</mn> </msup> <mo>+</mo>
            <mrow>
              <mn>4</mn>
              <mo>&InvisibleTimes;</mo>
              <mi>x</mi>
            </mrow>
    <mo>+</mo>
    <mn>4</mn>
  </mrow>
    <mo>=</mo>
    <mn>0</mn>
</mrow>
</math>
<p>
<?php echo "<font color=\"#000000\">Hola Mundo</font>"; ?> 
</p>
</body>
</html> 
Por ejemplo, porque lo que imprime por pantalla es: Hola Mundo"; ?>

Gracias de todas formas, voy a mirar tu enlace.

Última edición por romeo77; 09/11/2004 a las 10:06