- </html:h4>
- </when>
- <when test="starts-with($text, '•') and &sigiled-text;">
- <html:li class="unordered" data-level="1">
- <html:p>
- <call-template name="LesML:id-and-contents">
- <with-param name="source" select="&unsigiled-text;"/>
- </call-template>
- </html:p>
- </html:li>
- </when>
- <when test="starts-with($text, '🔢') and &sigiled-text;">
- <html:li class="ordered" data-level="1">
- <html:p>
- <call-template name="LesML:id-and-contents">
- <with-param name="source" select="&unsigiled-text;"/>
- </call-template>
- </html:p>
- </html:li>
- </when>
- <when test="starts-with($text, '◦') and &sigiled-text;">
- <html:li class="unordered" data-level="2">
- <html:p>
- <call-template name="LesML:id-and-contents">
- <with-param name="source" select="&unsigiled-text;"/>
- </call-template>
- </html:p>
- </html:li>
- </when>
- <when test="starts-with($text, '🔠') and &sigiled-text;">
- <html:li class="ordered" data-level="2">
- <html:p>
- <call-template name="LesML:id-and-contents">
- <with-param name="source" select="&unsigiled-text;"/>
- </call-template>
- </html:p>
- </html:li>
- </when>
- <when test="starts-with($text, '▪') and &sigiled-text;">
- <html:li class="unordered" data-level="3">
- <html:p>
- <call-template name="LesML:id-and-contents">
- <with-param name="source" select="&unsigiled-text;"/>
- </call-template>
- </html:p>
- </html:li>
- </when>
- <when test="starts-with($text, '🔡') and &sigiled-text;">
- <html:li class="ordered" data-level="3">
- <html:p>
- <call-template name="LesML:id-and-contents">
- <with-param name="source" select="&unsigiled-text;"/>
- </call-template>
- </html:p>
- </html:li>
- </when>
- <when test="starts-with($text, '⁃') and &sigiled-text;">
- <html:li class="unordered" data-level="4">
- <html:p>
- <call-template name="LesML:id-and-contents">
- <with-param name="source" select="&unsigiled-text;"/>
- </call-template>
- </html:p>
- </html:li>
- </when>
- <when test="starts-with($text, '🔣') and &sigiled-text;">
- <html:li class="ordered" data-level="4">
- <html:p>
- <call-template name="LesML:id-and-contents">
- <with-param name="source" select="&unsigiled-text;"/>
- </call-template>
- </html:p>
- </html:li>
- </when>
- <when test="starts-with($text, '🛈') and &sigiled-text;">
- <html:div role="note" class="info">
- <html:p>
- <call-template name="LesML:id-and-contents">
- <with-param name="source" select="&unsigiled-text;"/>
- </call-template>
- </html:p>
- </html:div>
- </when>
- <when test="starts-with($text, '⯑') and &sigiled-text;">
- <html:div role="note" class="query">
- <html:p>
- <call-template name="LesML:id-and-contents">
- <with-param name="source" select="&unsigiled-text;"/>
- </call-template>
- </html:p>
- </html:div>
- </when>
- <when test="starts-with($text, '⚠︎') and &sigiled-text;">
- <html:div role="note" class="warn">
- <html:p>
- <call-template name="LesML:id-and-contents">
- <with-param name="source" select="&unsigiled-text;"/>
- </call-template>
- </html:p>
- </html:div>
- </when>
- <when test="starts-with($text, '※') and &sigiled-text;">
- <html:div role="note" class="note">
- <html:p>
- <call-template name="LesML:id-and-contents">
- <with-param name="source" select="&unsigiled-text;"/>
- </call-template>
- </html:p>
- </html:div>
- </when>
- <when test="starts-with($text, '☡') and &sigiled-text;">
- <html:div role="note" class="caution">
- <html:p>
- <call-template name="LesML:id-and-contents">
- <with-param name="source" select="&unsigiled-text;"/>
- </call-template>
- </html:p>
- </html:div>
- </when>
- <when test="starts-with($text, '⋯') and &sigiled-text;">
- <html:div class="continuation">
- <html:p>
- <call-template name="LesML:id-and-contents">
- <with-param name="source" select="&unsigiled-text;"/>
- </call-template>
- </html:p>
- </html:div>
- </when>
- <when test="starts-with($text, '#') and &sigiled-text;">
- <comment>
- <value-of select="&unsigiled-text;"/>
- </comment>
- </when>
- <otherwise>
- <html:p>