Envoyé par : Utilisateur anonyme
Date : 27/05/2005 13:25
Bonjour,
J'utilise firefox 1.04. Je parviens à faire afficher du MathML dans une vbox dans une fenêtre XUL
Par contre, le même noeud MathML n'est plus affiché dès qu'il est placé dans un template.
Quelqu'un aurait-il une idée ?
Le but est de placer la séquence MathML dans le fichier rdf en rdf:parsetype:"litteral". Est-ce possible ?
Merci,
Cyril.
<?xml version="1.0" encoding="iso-8859-1"?>
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
<?xml-stylesheet href="resource://gre/res/mathml.css" type="text/css"?>
<?xml-stylesheet href="data:text/css,math[display='inline']{display:-moz-inline-box}" type="text/css"?>
<window id="example-window" title="Mon exemple"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<label value="Bonjour tout le monde"/>
<vbox width="200" height="200" style="border: 1px solid blue;" datasources="unit1.rdf" ref="http://www.some-mozfet-units.com/all-units">
<template>
<vbox uri="rdf:*">
<button label="rdf:http://www.some-mozfet-units.com/rdf#name"/>
<button label="rdf:http://www.some-mozfet-units.com/rdf#factor"/>
<button label="rdf:http://www.some-mozfet-units.com/rdf#math"/>
<vbox style="border: 1px solid blue;">
<math display="block" xmlns="http://www.w3.org/1998/Math/MathML">
<msup>
<mn>2</mn>
<mrow>
<mi>x</mi>
<mo>+</mo>
<mn>2</mn>
</mrow>
</msup>
</math>
</vbox>
<label value="BOnjour tout le monde."/>
</vbox>
</template>
</vbox>
<vbox>
<math display="block" xmlns="http://www.w3.org/1998/Math/MathML">
<msup>
<mn>2</mn>
<mrow>
<mi>x</mi>
<mo>+</mo>
<mn>2</mn>
</mrow>
</msup>
</math>
</vbox>
</window>
<?xml version="1.0" encoding="iso-8859-1"?> <RDF:RDF xmlns:RDF="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:UNITS="http://www.some-mozfet-units.com/rdf#" xmlns="http://www.w3.org/TR/REC-mathml"> <RDF:Description RDF:about="http://www.some-mozfet-units.com/electricfield/voltpermeter"> <UNITS:name>volt per meter</UNITS:name> <UNITS:factor>10</UNITS:factor> <UNITS:math>v</UNITS:math> </RDF:Description> <RDF:Seq RDF:about="http://www.some-mozfet-units.com/all-units"> <RDF:li RDF:resource="http://www.some-mozfet-units.com/electricfield/voltpermeter"/> </RDF:Seq> </RDF:RDF>
Il n'est plus possible de poster des messages dans ce forum.
Copyright © 2003-2013 association xulfr, 2013-2016 Laurent Jouanneau - Informations légales.
Mozilla® est une marque déposée de la fondation Mozilla.
Mozilla.org™, Firefox™, Thunderbird™, Mozilla Suite™ et XUL™
sont des marques de la fondation Mozilla.