]> Lady’s Gitweb - Shushe/commitdiff
Fix T·S·V parser
authorLady <redacted>
Sun, 28 Apr 2024 18:06:18 +0000 (14:06 -0400)
committerLady <redacted>
Mon, 29 Apr 2024 03:24:37 +0000 (23:24 -0400)
A pair of mistakes meant that the final body column was dropped, and
would have been unprocessable if it wasn’t.

parsers/tsv.xslt

index 6c689360a3afb1e4a6f3b92ba827043667decaa1..9018beaf6280fe7d27d28d51c6c1d17702ff1785 100644 (file)
@@ -51,11 +51,11 @@ If a copy of the M·P·L was not distributed with this file, You can obtain one
                                                </call-template>
                                        </variable>
                                        <html:tr>
-                                               <for-each select="exsl:node-set($cols)/*[count(exsl:node-set($headcols)/*)>position()]">
+                                               <for-each select="exsl:node-set($cols)/*[count(exsl:node-set($headcols)/*)>=position()]">
                                                        <html:td>
                                                                <value-of select="."/>
                                                                <if test="position()=count(exsl:node-set($headcols)/*)">
-                                                                       <for-each select="following-sibling:*">
+                                                                       <for-each select="following-sibling::*">
                                                                                <text>&#x9;</text>
                                                                                <value-of select="."/>
                                                                        </for-each>
This page took 0.026389 seconds and 4 git commands to generate.