Mercurial > hg > ooxml
comparison tokenise.xsl @ 54:191c95187e87
working now on enron1k, uli1/sheet1
author | Henry S. Thompson <ht@markup.co.uk> |
---|---|
date | Tue, 16 May 2017 19:54:19 +0100 |
parents | 8000dbed09df |
children |
comparison
equal
deleted
inserted
replaced
53:8000dbed09df | 54:191c95187e87 |
---|---|
112 <xsl:variable name="content" select="e:amalgamate($tokens,$i,$soFar,10,'')"/> | 112 <xsl:variable name="content" select="e:amalgamate($tokens,$i,$soFar,10,'')"/> |
113 <xsl:variable name="x"><x><xsl:value-of select="$content?2"/></x></xsl:variable> | 113 <xsl:variable name="x"><x><xsl:value-of select="$content?2"/></x></xsl:variable> |
114 <xsl:sequence select="[$content?1,$x/*]"/> | 114 <xsl:sequence select="[$content?1,$x/*]"/> |
115 </xsl:function> | 115 </xsl:function> |
116 | 116 |
117 <xsl:function name="e:oddx"> | 117 <xsl:function name="e:oddx"> |
118 <xsl:param name="tokens" as="element(xf:group)*"/> | 118 <xsl:param name="tokens" as="element(xf:group)*"/> |
119 <xsl:param name="i" as="xs:integer"/> | 119 <xsl:param name="i" as="xs:integer"/> |
120 <xsl:param name="soFar" as="xs:string"/><!-- Will always be a lonely ' --> | 120 <xsl:param name="soFar" as="xs:string"/><!-- Will always be a lonely ' --> |
121 <!-- Amalgamate bits of type 9 and 10 as <v> for wrapping in <e> --> | 121 <!-- Amalgamate bits of type 3, 9 and 10 as <v> for wrapping in <e> --> |
122 <xsl:variable name="content" select="e:amalgamate($tokens,$i,$soFar,(10,9),$soFar)"/> | 122 <xsl:variable name="content" select="e:amalgamate($tokens,$i,$soFar,(10,9,3),$soFar)"/> |
123 <xsl:variable name="x"><v><xsl:value-of select=" | 123 <xsl:variable name="x"><v><xsl:value-of select=" |
124 if ($tokens[$content?1]=$soFar) | 124 if ($tokens[$content?1]=$soFar) |
125 then concat($content?2,$soFar) | 125 then concat($content?2,$soFar) |
126 else e:shouldnt('oddx',$tokens[$content?1])"/></v></xsl:variable> | 126 else e:shouldnt('oddx',$tokens[$content?1])"/></v></xsl:variable> |
127 <xsl:sequence select="[$content?1+1,$x/*]"/> | 127 <xsl:sequence select="[$content?1+1,$x/*]"/> |