Corriger l'indentation
This commit is contained in:
parent
30aec0a1a0
commit
8af606bd0f
@ -9,7 +9,8 @@
|
|||||||
first <tu> element, and create a column for each language. -->
|
first <tu> element, and create a column for each language. -->
|
||||||
<!-- Philippe Tourigny, modified 3-6-2023, version 0.96
|
<!-- Philippe Tourigny, modified 3-6-2023, version 0.96
|
||||||
Streamline namespaces to only those used in the transformation.
|
Streamline namespaces to only those used in the transformation.
|
||||||
Improve formatting for attributes too long to fit on a single line. -->
|
Improve formatting for attributes too long to fit on a single line and
|
||||||
|
fix awkward indentation. -->
|
||||||
<!-- Copyright 2013 Dominique Meeùs, and 2022 Philippe Tourigny.
|
<!-- Copyright 2013 Dominique Meeùs, and 2022 Philippe Tourigny.
|
||||||
This program is free software: you can redistribute it and/or modify it
|
This program is free software: you can redistribute it and/or modify it
|
||||||
under the terms of the GNU Lesser General Public License
|
under the terms of the GNU Lesser General Public License
|
||||||
@ -88,23 +89,23 @@
|
|||||||
table:number-columns-repeated="{$numLangs}"
|
table:number-columns-repeated="{$numLangs}"
|
||||||
table:default-cell-style-name="ce2"/>
|
table:default-cell-style-name="ce2"/>
|
||||||
|
|
||||||
<!-- Fill in the language headers in the first row
|
<!-- Fill in the language headers in the first row
|
||||||
The use of the "local-name()" function enables
|
The use of the "local-name()" function enables
|
||||||
the filter to handle older versions that use the
|
the filter to handle older versions that use the
|
||||||
"lang" attribute as well as recent versions that
|
"lang" attribute as well as recent versions that
|
||||||
use the "xml:lang"` attributes -->
|
use the "xml:lang"` attributes -->
|
||||||
<table:table-row table:style-name="ro1">
|
<table:table-row table:style-name="ro1">
|
||||||
<xsl:for-each select="$firstTU/tuv">
|
<xsl:for-each select="$firstTU/tuv">
|
||||||
<table:table-cell table:style-name="heading">
|
<table:table-cell table:style-name="heading">
|
||||||
<text:p>
|
<text:p>
|
||||||
<xsl:value-of select="@*[local-name()='lang']"/>
|
<xsl:value-of select="@*[local-name()='lang']"/>
|
||||||
</text:p>
|
</text:p>
|
||||||
</table:table-cell>
|
</table:table-cell>
|
||||||
</xsl:for-each>
|
</xsl:for-each>
|
||||||
</table:table-row>
|
</table:table-row>
|
||||||
|
|
||||||
<!-- Process the <tu> and <tuv> elements in the TMX file:
|
<!-- Process the <tu> and <tuv> elements in the TMX file:
|
||||||
One row per tu, one column per segment in each <tuv>. -->
|
One row per tu, one column per segment in each <tuv>. -->
|
||||||
<xsl:for-each select="tmx/body/tu">
|
<xsl:for-each select="tmx/body/tu">
|
||||||
<table:table-row table:style-name="ro1">
|
<table:table-row table:style-name="ro1">
|
||||||
<xsl:for-each select="tuv">
|
<xsl:for-each select="tuv">
|
||||||
|
Loading…
Reference in New Issue
Block a user