X-Git-Url: https://git.ladys.computer/Shushe/blobdiff_plain/d9a975838fa5c06a00ca5031a0d1e18cc66fefd6..f3c2056c026b2d04d1470d000c50df85759b6003:/parsers/tsv.xslt?ds=sidebyside diff --git a/parsers/tsv.xslt b/parsers/tsv.xslt index 6c68936..21ad1e0 100644 --- a/parsers/tsv.xslt +++ b/parsers/tsv.xslt @@ -4,9 +4,9 @@ SPDX-FileCopyrightText: 2023, 2024 Lady <https://www.ladys.computer/about/#lady> SPDX-License-Identifier: MPL-2.0 --> <!-- -⁌ ⛩️📰 书社 ∷ parsers/tsv.xslt +⁌ ⛩📰 书社 ∷ parsers/tsv.xslt -© 2023–2024 Lady [@ Lady’s Computer]. +© 2023–2024 Lady [@ Ladys Computer]. This Source Code Form is subject to the terms of the Mozilla Public License, v 2.0. If a copy of the M·P·L was not distributed with this file, You can obtain one at <https://mozilla.org/MPL/2.0/>. @@ -51,11 +51,14 @@ 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> + <attribute name="data-tsv-header"> + <value-of select="exsl:node-set($headcols)/*[count(current()/preceding-sibling::*)+1]"/> + </attribute> <value-of select="."/> <if test="position()=count(exsl:node-set($headcols)/*)"> - <for-each select="following-sibling:*"> + <for-each select="following-sibling::*"> <text>	</text> <value-of select="."/> </for-each>