- </when>
- <when test="starts-with($text, '•') and &sigiled-text;">
- <element name="li" namespace="&xhtml;">
- <attribute name="class">
- <text>unordered</text>
- </attribute>
- <attribute name="data-level">
- <text>1</text>
- </attribute>
- <element name="p" namespace="&xhtml;">
- <call-template name="LesML:id-and-contents">
- <with-param name="source" select="&unsigiled-text;"/>
- </call-template>
- </element>
- </element>
- </when>
- <when test="starts-with($text, '🔢') and &sigiled-text;">
- <element name="li" namespace="&xhtml;">
- <attribute name="class">
- <text>ordered</text>
- </attribute>
- <attribute name="data-level">
- <text>1</text>
- </attribute>
- <element name="p" namespace="&xhtml;">
- <call-template name="LesML:id-and-contents">
- <with-param name="source" select="&unsigiled-text;"/>
- </call-template>
- </element>
- </element>
- </when>
- <when test="starts-with($text, '◦') and &sigiled-text;">
- <element name="li" namespace="&xhtml;">
- <attribute name="class">
- <text>unordered</text>
- </attribute>
- <attribute name="data-level">
- <text>2</text>
- </attribute>
- <element name="p" namespace="&xhtml;">
- <call-template name="LesML:id-and-contents">
- <with-param name="source" select="&unsigiled-text;"/>
- </call-template>
- </element>
- </element>
- </when>
- <when test="starts-with($text, '🔠') and &sigiled-text;">
- <element name="li" namespace="&xhtml;">
- <attribute name="class">
- <text>ordered</text>
- </attribute>
- <attribute name="data-level">
- <text>2</text>
- </attribute>
- <element name="p" namespace="&xhtml;">
- <call-template name="LesML:id-and-contents">
- <with-param name="source" select="&unsigiled-text;"/>
- </call-template>
- </element>
- </element>
- </when>
- <when test="starts-with($text, '▪') and &sigiled-text;">
- <element name="li" namespace="&xhtml;">
- <attribute name="class">
- <text>unordered</text>
- </attribute>
- <attribute name="data-level">
- <text>3</text>
- </attribute>
- <element name="p" namespace="&xhtml;">
- <call-template name="LesML:id-and-contents">
- <with-param name="source" select="&unsigiled-text;"/>
- </call-template>
- </element>
- </element>
- </when>
- <when test="starts-with($text, '🔡') and &sigiled-text;">
- <element name="li" namespace="&xhtml;">
- <attribute name="class">
- <text>ordered</text>
- </attribute>
- <attribute name="data-level">
- <text>3</text>
- </attribute>
- <element name="p" namespace="&xhtml;">
- <call-template name="LesML:id-and-contents">
- <with-param name="source" select="&unsigiled-text;"/>
- </call-template>
- </element>
- </element>
- </when>
- <when test="starts-with($text, '⁃') and &sigiled-text;">
- <element name="li" namespace="&xhtml;">
- <attribute name="class">
- <text>unordered</text>
- </attribute>
- <attribute name="data-level">
- <text>4</text>
- </attribute>
- <element name="p" namespace="&xhtml;">
- <call-template name="LesML:id-and-contents">
- <with-param name="source" select="&unsigiled-text;"/>
- </call-template>
- </element>
- </element>
- </when>
- <when test="starts-with($text, '🔣') and &sigiled-text;">
- <element name="li" namespace="&xhtml;">
- <attribute name="class">
- <text>ordered</text>
- </attribute>
- <attribute name="data-level">
- <text>4</text>
- </attribute>
- <element name="p" namespace="&xhtml;">
- <call-template name="LesML:id-and-contents">
- <with-param name="source" select="&unsigiled-text;"/>
- </call-template>
- </element>