Mercurial > hg > Aquinas
changeset 128:b0bcf3d6b13f
finished FP_vii
| author | ht |
|---|---|
| date | Sat, 04 Nov 2023 09:54:33 +0000 |
| parents | 70dcf6f73ed6 |
| children | 5ca9f9d43496 |
| files | summa/bilingual/bi.xsl |
| diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/summa/bilingual/bi.xsl Sun May 07 11:39:07 2023 +0000 +++ b/summa/bilingual/bi.xsl Sat Nov 04 09:54:33 2023 +0000 @@ -2,6 +2,7 @@ <!DOCTYPE xsl:stylesheet SYSTEM "../../../../lib/xml/xsl.dtd" > <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns="http://www.w3.org/1999/xhtml" xmlns:x="http://www.w3.org/1999/xhtml"> <xsl:param name="rawpart"/> + <xsl:variable name="rpq" select="concat(substring-before($rawpart,'.'),'_Q')"/> <xsl:variable name="part" select="concat(substring-before($rawpart,'.'),'_',substring-after($rawpart,'.'),'.html')"/> <xsl:variable name="index" select="document('../english/index.xml',/)/*"/> <xsl:key name="iq" match="file" use="substring-before(@name,'_')"/> @@ -24,7 +25,7 @@ <xsl:template match="x:h3"> <xsl:copy> <xsl:apply-templates select="@*"/> - <xsl:text>Q. </xsl:text><xsl:value-of select="substring-after(../@id,'FS_Q')"/><xsl:text>. </xsl:text> + <xsl:text>Q. </xsl:text><xsl:value-of select="substring-after(../@id,$rpq)"/><xsl:text>. </xsl:text> <xsl:apply-templates/> </xsl:copy> </xsl:template> @@ -32,7 +33,7 @@ <xsl:template match="x:h4"> <xsl:copy> <xsl:apply-templates select="@*"/> - <xsl:text>Q. </xsl:text><xsl:value-of select="substring-after(../../@id,'FS_Q')"/><xsl:text>. A. </xsl:text> + <xsl:text>Q. </xsl:text><xsl:value-of select="substring-after(../../@id,$rpq)"/><xsl:text>. A. </xsl:text> <xsl:value-of select="substring-after(../@id,'_A')"/> <xsl:text>. </xsl:text> <xsl:apply-templates/>
