comparison rect.xsl @ 39:4c6a341e75da

big rework works on sample2, w/o refs processing
author Henry S. Thompson <ht@markup.co.uk>
date Wed, 26 Apr 2017 18:51:34 +0100
parents 468a6cf8bf0b
children ac6d1ca099f7
comparison
equal deleted inserted replaced
38:468a6cf8bf0b 39:4c6a341e75da
5 5
6 <xsl:include href="a2n.xsl"/> 6 <xsl:include href="a2n.xsl"/>
7 <xsl:include href="n2a.xsl"/> 7 <xsl:include href="n2a.xsl"/>
8 <xsl:include href="tokenise.xsl"/> 8 <xsl:include href="tokenise.xsl"/>
9 9
10 <xsl:variable name="refs" select="collection()[2]/*"/> 10 <xsl:variable name="refs" select="document('sample2/empty_refs.xml')/*"/><!--collection()[2]/*-->
11 11
12 <xsl:key name="ref" match="e:i" use="@r"/> 12 <xsl:key name="ref" match="e:i" use="@r"/>
13 13
14 <xsl:variable name="dim" select="//s:dimension/@ref"/> 14 <xsl:variable name="dim" select="//s:dimension/@ref"/>
15 15
40 <xsl:if test="$c/*"> 40 <xsl:if test="$c/*">
41 <t> 41 <t>
42 <xsl:if test="$c/@e:class"><xsl:attribute name="c"><xsl:value-of select="substring($c/@e:class,1,1)"/></xsl:attribute></xsl:if> 42 <xsl:if test="$c/@e:class"><xsl:attribute name="c"><xsl:value-of select="substring($c/@e:class,1,1)"/></xsl:attribute></xsl:if>
43 <xsl:if test="$c/@e:code"><xsl:attribute name="l"><xsl:value-of select="$c/@e:code"/></xsl:attribute></xsl:if> 43 <xsl:if test="$c/@e:code"><xsl:attribute name="l"><xsl:value-of select="$c/@e:code"/></xsl:attribute></xsl:if>
44 <xsl:if test="$c/s:f"> 44 <xsl:if test="$c/s:f">
45 <s:f> 45 <f>
46 <xsl:copy-of select="e:tokenise($c/s:f,$row,$col)"/> 46 <xsl:copy-of select="e:tokenise($c/s:f,$row,$col)"/>
47 </s:f></xsl:if> 47 </f></xsl:if>
48 <xsl:value-of select="substring($c/@e:type,1,1)"/> 48 <xsl:value-of select="substring($c/@e:type,1,1)"/>
49 </t> 49 </t>
50 </xsl:if> 50 </xsl:if>
51 <xsl:if test="$reffed"><xsl:copy-of select="$reffed/e:r"/></xsl:if> 51 <xsl:if test="$reffed"><xsl:copy-of select="$reffed/e:r"/></xsl:if>
52 </c> 52 </c>