Mercurial > hg > Aquinas
comparison summa/bilingual/bi.xsl @ 122:389b0c620224
more debugging output
| author | ht |
|---|---|
| date | Sat, 30 Oct 2021 17:52:36 +0000 |
| parents | e45e864fda83 |
| children | b0bcf3d6b13f |
comparison
equal
deleted
inserted
replaced
| 121:500614f45701 | 122:389b0c620224 |
|---|---|
| 12 <xsl:variable name="ta" select="substring-after($tw,'_A')"/> | 12 <xsl:variable name="ta" select="substring-after($tw,'_A')"/> |
| 13 <xsl:variable name="tq" select="number(substring-after(if ($ta='') then $tw else substring-before($tw,'_A'),'_Q'))"/> | 13 <xsl:variable name="tq" select="number(substring-after(if ($ta='') then $tw else substring-before($tw,'_A'),'_Q'))"/> |
| 14 <xsl:variable name="ff" select="key('iq',$tp,$index)"/> | 14 <xsl:variable name="ff" select="key('iq',$tp,$index)"/> |
| 15 <xsl:variable name="f" select="$ff[number(@first) le $tq][number(@last) ge $tq]/@name"/> | 15 <xsl:variable name="f" select="$ff[number(@first) le $tq][number(@last) ge $tq]/@name"/> |
| 16 <xsl:message>ref: <xsl:value-of select="$tw"/><xsl:text> </xsl:text><xsl:value-of select="$f"/></xsl:message> | 16 <xsl:message>ref: <xsl:value-of select="$tw"/><xsl:text> </xsl:text><xsl:value-of select="$f"/></xsl:message> |
| 17 <xsl:message>ref: |<xsl:value-of select="$tp"/>|<xsl:value-of select="$tw"/>|<xsl:value-of select="$ta"/>|<xsl:value-of select="$tq"/>|</xsl:message> | |
| 17 <xsl:copy> | 18 <xsl:copy> |
| 18 <xsl:attribute name="href"><xsl:value-of select="concat(if ($part=$f) then '' else (if ($f) then $f else 'unknown.html'),'#',$tw)"/></xsl:attribute> | 19 <xsl:attribute name="href"><xsl:value-of select="concat(if ($part=$f) then '' else (if ($f) then $f else 'unknown.html'),'#',$tw)"/></xsl:attribute> |
| 19 <xsl:apply-templates select="@*[not(local-name()='href')]|node()"/> | 20 <xsl:apply-templates select="@*[not(local-name()='href')]|node()"/> |
| 20 </xsl:copy> | 21 </xsl:copy> |
| 21 </xsl:template> | 22 </xsl:template> |
