]> Lady’s Gitweb - LesML/blobdiff - parser.xslt
Add support for proper name marks
[LesML] / parser.xslt
index 227e285f2eaff705a6a0ec9954c5733d5bbb493d..7f6d153b8c1bd3bb373187ffc2b7ddaeb7ba4846 100644 (file)
@@ -755,6 +755,7 @@ If a copy of the M·P·L was not distributed with this file, You can obtain one
                <param name="element-namespace" select="'http://www.w3.org/1999/xhtml'"/>
                <param name="start-sigil"/>
                <param name="end-sigil"/>
+               <param name="class"/>
                <param name="role"/>
                <param name="langtag-supported" select="false()"/>
                <choose>
@@ -802,6 +803,11 @@ If a copy of the M·P·L was not distributed with this file, You can obtain one
                                                                                        <value-of select="$role"/>
                                                                                </attribute>
                                                                        </if>
+                                                                       <if test="string($class)!=''">
+                                                                               <attribute name="class">
+                                                                                       <value-of select="$class"/>
+                                                                               </attribute>
+                                                                       </if>
                                                                        <if test="string($langtag)!=''">
                                                                                <if test="$element-namespace='http://www.w3.org/1999/xhtml'">
                                                                                        <attribute name="lang">
@@ -1034,6 +1040,18 @@ 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:named"/>
+       </template>
+       <template match="node()" mode="LesML:named">
+               <variable name="result">
+                       <apply-templates select="." mode="LesML:inline">
+                               <with-param name="element-name" select="'u'"/>
+                               <with-param name="element-namespace" select="'&xhtml;'"/>
+                               <with-param name="start-sigil" select="'⸶'"/>
+                               <with-param name="end-sigil" select="'⸷'"/>
+                               <with-param name="class" select="'name'"/>
+                       </apply-templates>
+               </variable>
                <apply-templates select="exsl:node-set($result)/node()" mode="LesML:offset"/>
        </template>
        <template match="node()" mode="LesML:offset">
This page took 0.121966 seconds and 4 git commands to generate.