Commit d8872bd7 authored by Alex Theg's avatar Alex Theg

scrub literal li numbering

parent b3f67cbf
......@@ -10,6 +10,7 @@
<xsl:variable name="transformation-sequence">
<xsw:transform version="3.0">detect-numbered-lists.xsl</xsw:transform>
<xsw:transform version="3.0">itemize-detected-lists.xsl</xsw:transform>
<xsw:transform version="3.0">scrub-literal-numbering-lists.xsl</xsw:transform>
</xsl:variable>
<!-- Dummy template quiets anxious XSLT engines when HTML is provided as input. -->
......
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="3.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsw="http://coko.foundation/xsweet"
xmlns="http://www.w3.org/1999/xhtml"
xpath-default-namespace="http://www.w3.org/1999/xhtml"
exclude-result-prefixes="#all">
<xsl:output method="xml" indent="no" omit-xml-declaration="yes"/>
<xsl:mode on-no-match="shallow-copy"/>
<!-- find all li:p s and scrub the leading numeral(s) + . + ws -->
<xsl:template match="li/p">
<xsl:value-of select='replace(., "^\s*\d+\.\s+", "")'/>
</xsl:template>
</xsl:stylesheet>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment