# HG changeset patch # User Patrick PIERRE # Date 1387489592 -3600 # Node ID d8a32aa881111eb0e357ac7aebbdcc6d2b2bd357 # Parent 59d00f9494c92cad5230aed0f1174804c8052fc6 Ajout d'un attribut xml:id aux maths diff -r 59d00f9494c9 -r d8a32aa88111 RelaxNG/Examples/Documents/torture_test.xml --- a/RelaxNG/Examples/Documents/torture_test.xml jeu. déc. 19 18:48:33 2013 +0100 +++ b/RelaxNG/Examples/Documents/torture_test.xml jeu. déc. 19 22:46:32 2013 +0100 @@ -848,8 +848,10 @@ L'équation du second degré <math><var>a</var><var>x</var><sup>2</sup> + <var>b</var><var>x</var> + <var>c</var></math> admet les - solutions suivantes si elles existent : - <math><latex>x = \frac{-b\pm\sqrt{b^2-4ac}}{2a}</latex></math> + solutions suivantes si elles existent : + <math xml:id="eqn2deg"> + <latex>x = \frac{-b\pm\sqrt{b^2-4ac}}{2a}</latex> + </math> </p> </item> <item> @@ -974,6 +976,10 @@ multimédia</link> avec notamment sa photo de <link idref="cockpit">cockpit</link>. </p> + <p> + N'hésitez pas à revoir les <link + idref="eqn2deg">solutions</link> des équations du second degré. + </p> </item> <item> <label>Pictogrammes</label> diff -r 59d00f9494c9 -r d8a32aa88111 RelaxNG/Examples/Topics/maths.xml --- a/RelaxNG/Examples/Topics/maths.xml jeu. déc. 19 18:48:33 2013 +0100 +++ b/RelaxNG/Examples/Topics/maths.xml jeu. déc. 19 22:46:32 2013 +0100 @@ -18,7 +18,7 @@ <p> Il n'existe pas de nombres entiers non nuls <var>x</var>, <var>y</var> et <var>z</var> tels que : - <math display="wide"> + <math xml:id="fermat" display="wide"> <var>x</var><sup>n</sup> + <var>y</var><sup>n</sup> = <var>z</var><sup>n</sup> </math> dès que <var>n</var> est un entier strictement supérieur à 2. @@ -60,7 +60,7 @@ </head> <p> Soit la fonction : - <math display="wide"> + <math xml:id="fonction" display="wide"> <latex>f(x) = x^2 + \sqrt[3]{\frac{3x}{2y-3}}</latex> </math> </p> @@ -72,7 +72,7 @@ </head> <p> Les transformations de Lorentz : - <math display="box"> + <math xml:id="lorentz" display="box"> <latex plain="true"> \begin{eqnarray*} ct' & = & \frac{ct-(v/c)x}{\sqrt{1-v^2/c^2}},\\ diff -r 59d00f9494c9 -r d8a32aa88111 RelaxNG/publidoc.rnc --- a/RelaxNG/publidoc.rnc jeu. déc. 19 18:48:33 2013 +0100 +++ b/RelaxNG/publidoc.rnc jeu. déc. 19 22:46:32 2013 +0100 @@ -741,7 +741,8 @@ math = element math { math.attributes, math.content } math.attributes = - math.display.attribute? + xmlid.attribute? + & math.display.attribute? math.display.attribute = attribute display { "wide" | "numbered" | "box" | "numbered-box" }