]> Lady’s Gitweb - LesML/blobdiff - parser.xslt
Adjust order of precedence for inlines
[LesML] / parser.xslt
index a47b5bbc9531d5f264bb5c9872414f063fac70a0..6e0d82a842f43854ec589bc8413ee2cf12ce3c63 100644 (file)
@@ -1004,24 +1004,14 @@ If a copy of the M·P·L was not distributed with this file, You can obtain one
                                <with-param name="end-sigil" select="'⸩'"/>
                        </apply-templates>
                </variable>
-               <apply-templates select="exsl:node-set($result)/node()" mode="LesML:important"/>
-       </template>
-       <template match="node()" mode="LesML:important">
-               <variable name="result">
-                       <apply-templates select="." mode="LesML:inline">
-                               <with-param name="element-name" select="'html:strong'"/>
-                               <with-param name="start-sigil" select="'☞'"/>
-                               <with-param name="end-sigil" select="'☜'"/>
-                       </apply-templates>
-               </variable>
-               <apply-templates select="exsl:node-set($result)/node()" mode="LesML:emphasized"/>
+               <apply-templates select="exsl:node-set($result)/node()" mode="LesML:code"/>
        </template>
-       <template match="node()" mode="LesML:emphasized">
+       <template match="node()" mode="LesML:code">
                <variable name="result">
                        <apply-templates select="." mode="LesML:inline">
-                               <with-param name="element-name" select="'html:em'"/>
-                               <with-param name="start-sigil" select="''"/>
-                               <with-param name="end-sigil" select="''"/>
+                               <with-param name="element-name" select="'html:code'"/>
+                               <with-param name="start-sigil" select="'`'"/>
+                               <with-param name="end-sigil" select="'´'"/>
                        </apply-templates>
                </variable>
                <apply-templates select="exsl:node-set($result)/node()" mode="LesML:titled"/>
@@ -1055,13 +1045,23 @@ If a copy of the M·P·L was not distributed with this file, You can obtain one
                                <with-param name="end-sigil" select="'⦄'"/>
                        </apply-templates>
                </variable>
-               <apply-templates select="exsl:node-set($result)/node()" mode="LesML:code"/>
+               <apply-templates select="exsl:node-set($result)/node()" mode="LesML:important"/>
        </template>
-       <template match="node()" mode="LesML:code">
+       <template match="node()" mode="LesML:important">
+               <variable name="result">
+                       <apply-templates select="." mode="LesML:inline">
+                               <with-param name="element-name" select="'html:strong'"/>
+                               <with-param name="start-sigil" select="'☞'"/>
+                               <with-param name="end-sigil" select="'☜'"/>
+                       </apply-templates>
+               </variable>
+               <apply-templates select="exsl:node-set($result)/node()" mode="LesML:emphasized"/>
+       </template>
+       <template match="node()" mode="LesML:emphasized">
                <apply-templates select="." mode="LesML:inline">
-                       <with-param name="element-name" select="'html:code'"/>
-                       <with-param name="start-sigil" select="'`'"/>
-                       <with-param name="end-sigil" select="'´'"/>
+                       <with-param name="element-name" select="'html:em'"/>
+                       <with-param name="start-sigil" select="''"/>
+                       <with-param name="end-sigil" select="''"/>
                </apply-templates>
        </template>
 </transform>
This page took 0.145366 seconds and 4 git commands to generate.