Mercurial > hg > Aquinas
view summa/bilingual/fixup_e.xsl @ 122:389b0c620224
more debugging output
| author | ht |
|---|---|
| date | Sat, 30 Oct 2021 17:52:36 +0000 |
| parents | 77921d86a058 |
| children |
line wrap: on
line source
<?xml version='1.0'?> <!DOCTYPE doc SYSTEM "../../../../lib/xml/xsl.dtd" > <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0" xmlns:x="http://www.w3.org/1999/xhtml" exclude-result-prefixes="x" xmlns="http://www.w3.org/1999/xhtml"> <xsl:output method="xhtml"/> <xsl:template match="x:p[not(text())]"/><!-- These mess up the count later --> <xsl:template match="node()|@*"> <xsl:copy> <xsl:apply-templates select="node()|@*"/> </xsl:copy> </xsl:template> <xsl:template match="x:div[@class='div3']"> <!-- Doc elt. Collect the splayed out questions at the beginning of each Question (Loses some empty <a...> at the beginning --> <xsl:copy> <xsl:apply-templates select="@*"/> <xsl:text> </xsl:text> <xsl:apply-templates select="x:h3"/> <xsl:text> </xsl:text> <div class="div4"> <xsl:text> </xsl:text> <xsl:apply-templates select="x:p"/> <xsl:text> </xsl:text> </div> <xsl:text> </xsl:text> <xsl:apply-templates select="x:div"/> </xsl:copy> </xsl:template> </xsl:stylesheet>
