metanorma-un 0.12.6 → 0.12.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b4afd0f6a635e8ed3383d14ddd21737aafbb61f4d5b1e47eb683936f82d5fc37
4
- data.tar.gz: 4d11b23a6f99532384d12355db81fad52c020e1ab8495d0bb18313af8398e98b
3
+ metadata.gz: 219c898d77e60a55f391c5435cfd53c33b285394b51c5f754a0bd177261fbc20
4
+ data.tar.gz: 223a9a2cdf5c42a3c8e2404640ead1d99e58208fa3c743b36f5fdc3c2f7d5a22
5
5
  SHA512:
6
- metadata.gz: 7a5bdeb035b8f335eb6637d69664926ffa42d74c5d7aabddda3e403e418e996c6efe44c1945ea8d87f6cddcab52257585e540e9eaffedc371c726ea21312e457
7
- data.tar.gz: fbe220b5d596c020f3f16d03a67739bf9c5fed3b35617026a442ec52d0ccfb7afe1ef4d86a12c1d2c9d9f40b863b430f18d10ff1f6a4645a949e69f879cd5153
6
+ metadata.gz: f064ded953d4e110dd098da3216c87fb5651ec3ed0a1a67a906d636a586e4e948079c0a3949ad92c828ae40fe2a98fa4ae87a620fd9579d56115acea82ac621a
7
+ data.tar.gz: 9fb904a6da6bcd1476e160699b63e3f361cf785743f6ef511fe6774f2eb15e646a228c5cec43ae34e5a2dd032cd1ced256f5974b53d3ebedd5dd4103bd5af0f2
@@ -745,17 +745,30 @@
745
745
  <xsl:param name="add_math_as_text">true</xsl:param> <!-- add math in text behind svg formula, to copy-paste formula from PDF as text -->
746
746
 
747
747
  <xsl:param name="table_if">false</xsl:param> <!-- generate extended table in IF for autolayout-algorithm -->
748
- <xsl:param name="table_widths"/> <!-- path to xml with table's widths, generated on 1st pass, based on FOP Intermediate Format -->
748
+ <xsl:param name="table_widths"/> <!-- (debug: path to) xml with table's widths, generated on 1st pass, based on FOP Intermediate Format -->
749
749
  <!-- Example: <tables>
750
- <table id="table_if_tab-symdu" page-width="75"> - table id prefixed by 'table_if_' to simple search in IF
751
- <tbody>
752
- <tr>
753
- <td id="tab-symdu_1_1">
754
- <p_len>6</p_len>
755
- <p_len>100</p_len> for 2nd paragraph
756
- <word_len>6</word_len>
757
- <word_len>20</word_len>
758
- ...
750
+ <table page-width="509103" id="table1" width_max="223561" width_min="223560">
751
+ <column width_max="39354" width_min="39354"/>
752
+ <column width_max="75394" width_min="75394"/>
753
+ <column width_max="108813" width_min="108813"/>
754
+ <tbody>
755
+ <tr>
756
+ <td width_max="39354" width_min="39354">
757
+ <p_len>39354</p_len>
758
+ <word_len>39354</word_len>
759
+ </td>
760
+
761
+ OLD:
762
+ <tables>
763
+ <table id="table_if_tab-symdu" page-width="75"> - table id prefixed by 'table_if_' to simple search in IF
764
+ <tbody>
765
+ <tr>
766
+ <td id="tab-symdu_1_1">
767
+ <p_len>6</p_len>
768
+ <p_len>100</p_len> for 2nd paragraph
769
+ <word_len>6</word_len>
770
+ <word_len>20</word_len>
771
+ ...
759
772
  -->
760
773
 
761
774
  <!-- for command line debug: <xsl:variable name="table_widths_from_if" select="document($table_widths)"/> -->
@@ -975,6 +988,9 @@
975
988
  <xsl:variable name="hair_space"> </xsl:variable>
976
989
  <xsl:variable name="en_dash">–</xsl:variable>
977
990
  <xsl:variable name="em_dash">—</xsl:variable>
991
+ <xsl:variable name="cr">&#13;</xsl:variable>
992
+ <xsl:variable name="lf">
993
+ </xsl:variable>
978
994
 
979
995
  <xsl:template name="getTitle">
980
996
  <xsl:param name="name"/>
@@ -2616,6 +2632,20 @@
2616
2632
  </xsl:for-each>
2617
2633
  </xsl:template>
2618
2634
 
2635
+ <xsl:param name="table_only_with_id"/><!-- Example: table1, for table auto-layout algorithm -->
2636
+
2637
+ <xsl:template match="*[local-name()='table']" priority="2">
2638
+ <xsl:choose>
2639
+ <xsl:when test="$table_only_with_id != '' and @id = $table_only_with_id">
2640
+ <xsl:call-template name="table"/>
2641
+ </xsl:when>
2642
+ <xsl:when test="$table_only_with_id != ''"><fo:block/><!-- to prevent empty fo:block-container --></xsl:when>
2643
+ <xsl:otherwise>
2644
+ <xsl:call-template name="table"/>
2645
+ </xsl:otherwise>
2646
+ </xsl:choose>
2647
+ </xsl:template>
2648
+
2619
2649
  <xsl:template match="*[local-name()='table']" name="table">
2620
2650
 
2621
2651
  <xsl:variable name="table-preamble">
@@ -2625,9 +2655,11 @@
2625
2655
  <xsl:variable name="table">
2626
2656
 
2627
2657
  <xsl:variable name="simple-table">
2628
- <xsl:call-template name="getSimpleTable">
2629
- <xsl:with-param name="id" select="@id"/>
2630
- </xsl:call-template>
2658
+ <xsl:if test="$isGenerateTableIF = 'true' and $isApplyAutolayoutAlgorithm = 'true'">
2659
+ <xsl:call-template name="getSimpleTable">
2660
+ <xsl:with-param name="id" select="@id"/>
2661
+ </xsl:call-template>
2662
+ </xsl:if>
2631
2663
  </xsl:variable>
2632
2664
  <!-- <xsl:variable name="simple-table" select="xalan:nodeset($simple-table_)"/> -->
2633
2665
 
@@ -2729,9 +2761,9 @@
2729
2761
  </xsl:attribute>
2730
2762
  </xsl:for-each>
2731
2763
 
2732
- <xsl:variable name="isNoteOrFnExist" select="./*[local-name()='note'] or ./*[local-name()='example'] or .//*[local-name()='fn'][local-name(..) != 'name'] or ./*[local-name()='source']"/>
2764
+ <xsl:variable name="isNoteOrFnExist" select="./*[local-name()='note'][not(@type = 'units')] or ./*[local-name()='example'] or .//*[local-name()='fn'][local-name(..) != 'name'] or ./*[local-name()='source']"/>
2733
2765
  <xsl:if test="$isNoteOrFnExist = 'true'">
2734
- <xsl:attribute name="border-bottom">0pt solid black</xsl:attribute> <!-- set 0pt border, because there is a separete table below for footer -->
2766
+ <xsl:attribute name="border-bottom">0pt solid black</xsl:attribute><!-- set 0pt border, because there is a separete table below for footer -->
2735
2767
  </xsl:if>
2736
2768
 
2737
2769
  <xsl:choose>
@@ -2880,9 +2912,28 @@
2880
2912
 
2881
2913
  </fo:block>
2882
2914
 
2915
+ <!-- <xsl:if test="$namespace = 'bsi' or $namespace = 'iec' or $namespace = 'iso'"> -->
2916
+ <xsl:if test="$continued = 'true'">
2917
+ <fo:block text-align="right">
2918
+ <xsl:apply-templates select="../*[local-name() = 'note'][@type = 'units']/node()"/>
2919
+ </fo:block>
2920
+ </xsl:if>
2921
+ <!-- </xsl:if> -->
2922
+
2883
2923
  </xsl:if>
2884
2924
  </xsl:template> <!-- table/name -->
2885
2925
 
2926
+ <!-- workaround solution for https://github.com/metanorma/metanorma-iso/issues/1151#issuecomment-2033087938 -->
2927
+ <xsl:template match="*[local-name()='table']/*[local-name() = 'note'][@type = 'units']/*[local-name() = 'p']/text()" priority="4">
2928
+ <xsl:choose>
2929
+ <xsl:when test="preceding-sibling::*[local-name() = 'br']">
2930
+ <!-- remove CR or LF at start -->
2931
+ <xsl:value-of select="java:replaceAll(java:java.lang.String.new(.),'^(&#13;&#10;|&#13;|&#10;)', '')"/>
2932
+ </xsl:when>
2933
+ <xsl:otherwise><xsl:value-of select="."/></xsl:otherwise>
2934
+ </xsl:choose>
2935
+ </xsl:template>
2936
+
2886
2937
  <!-- SOURCE: ... -->
2887
2938
  <xsl:template match="*[local-name()='table']/*[local-name() = 'source']" priority="2">
2888
2939
  <xsl:call-template name="termsource"/>
@@ -3293,7 +3344,7 @@
3293
3344
  <xsl:param name="colwidths"/>
3294
3345
  <xsl:param name="colgroup"/>
3295
3346
 
3296
- <xsl:variable name="isNoteOrFnExist" select="../*[local-name()='note'] or ../*[local-name()='example'] or ../*[local-name()='dl'] or ..//*[local-name()='fn'][local-name(..) != 'name'] or ../*[local-name()='source'] or ../*[local-name()='p']"/>
3347
+ <xsl:variable name="isNoteOrFnExist" select="../*[local-name()='note'][not(@type = 'units')] or ../*[local-name()='example'] or ../*[local-name()='dl'] or ..//*[local-name()='fn'][local-name(..) != 'name'] or ../*[local-name()='source'] or ../*[local-name()='p']"/>
3297
3348
 
3298
3349
  <xsl:variable name="isNoteOrFnExistShowAfterTable">
3299
3350
 
@@ -3365,7 +3416,7 @@
3365
3416
 
3366
3417
  <xsl:apply-templates select="../*[local-name()='p']"/>
3367
3418
  <xsl:apply-templates select="../*[local-name()='dl']"/>
3368
- <xsl:apply-templates select="../*[local-name()='note']"/>
3419
+ <xsl:apply-templates select="../*[local-name()='note'][not(@type = 'units')]"/>
3369
3420
  <xsl:apply-templates select="../*[local-name()='example']"/>
3370
3421
  <xsl:apply-templates select="../*[local-name()='source']"/>
3371
3422
 
@@ -3375,7 +3426,7 @@
3375
3426
 
3376
3427
  <!-- horizontal row separator -->
3377
3428
  <xsl:if test="normalize-space($isDisplayRowSeparator) = 'true'">
3378
- <xsl:if test="(../*[local-name()='note'] or ../*[local-name()='example']) and normalize-space($table_fn_block) != ''">
3429
+ <xsl:if test="(../*[local-name()='note'][not(@type = 'units')] or ../*[local-name()='example']) and normalize-space($table_fn_block) != ''">
3379
3430
  <fo:block-container border-top="0.5pt solid black" padding-left="1mm" padding-right="1mm">
3380
3431
 
3381
3432
  <xsl:call-template name="setBordersTableArray"/>
@@ -4044,7 +4095,20 @@
4044
4095
  <!-- Definition List -->
4045
4096
  <!-- ===================== -->
4046
4097
 
4047
- <xsl:template match="*[local-name()='dl']">
4098
+ <!-- for table auto-layout algorithm -->
4099
+ <xsl:template match="*[local-name()='dl']" priority="2">
4100
+ <xsl:choose>
4101
+ <xsl:when test="$table_only_with_id != '' and @id = $table_only_with_id">
4102
+ <xsl:call-template name="dl"/>
4103
+ </xsl:when>
4104
+ <xsl:when test="$table_only_with_id != ''"><fo:block/><!-- to prevent empty fo:block-container --></xsl:when>
4105
+ <xsl:otherwise>
4106
+ <xsl:call-template name="dl"/>
4107
+ </xsl:otherwise>
4108
+ </xsl:choose>
4109
+ </xsl:template>
4110
+
4111
+ <xsl:template match="*[local-name()='dl']" name="dl">
4048
4112
  <xsl:variable name="isAdded" select="@added"/>
4049
4113
  <xsl:variable name="isDeleted" select="@deleted"/>
4050
4114
  <!-- <dl><xsl:copy-of select="."/></dl> -->
@@ -5973,7 +6037,13 @@
5973
6037
  <xsl:value-of select="$language_current_2"/>
5974
6038
  </xsl:when>
5975
6039
  <xsl:otherwise>
5976
- <xsl:value-of select="//*[local-name()='bibdata']//*[local-name()='language']"/>
6040
+ <xsl:variable name="language_current_3" select="normalize-space(//*[local-name()='bibdata']//*[local-name()='language'])"/>
6041
+ <xsl:choose>
6042
+ <xsl:when test="$language_current_3 != ''">
6043
+ <xsl:value-of select="$language_current_3"/>
6044
+ </xsl:when>
6045
+ <xsl:otherwise>en</xsl:otherwise>
6046
+ </xsl:choose>
5977
6047
  </xsl:otherwise>
5978
6048
  </xsl:choose>
5979
6049
  </xsl:otherwise>
@@ -6848,10 +6918,11 @@
6848
6918
  </xsl:template>
6849
6919
 
6850
6920
  <xsl:template match="*[local-name() = 'image']">
6921
+ <xsl:param name="indent">0</xsl:param>
6851
6922
  <xsl:variable name="isAdded" select="../@added"/>
6852
6923
  <xsl:variable name="isDeleted" select="../@deleted"/>
6853
6924
  <xsl:choose>
6854
- <xsl:when test="ancestor::*[local-name() = 'title'] or not(parent::*[local-name() = 'figure']) or parent::*[local-name() = 'p']">
6925
+ <xsl:when test="ancestor::*[local-name() = 'title'] or not(parent::*[local-name() = 'figure']) or parent::*[local-name() = 'p']"> <!-- inline image ( 'image:path' in adoc, with one colon after image) -->
6855
6926
  <fo:inline padding-left="1mm" padding-right="1mm">
6856
6927
  <xsl:if test="not(parent::*[local-name() = 'figure']) or parent::*[local-name() = 'p']">
6857
6928
  <xsl:attribute name="padding-left">0mm</xsl:attribute>
@@ -6860,7 +6931,43 @@
6860
6931
  <xsl:variable name="src">
6861
6932
  <xsl:call-template name="image_src"/>
6862
6933
  </xsl:variable>
6863
- <fo:external-graphic src="{$src}" fox:alt-text="Image {@alt}" vertical-align="middle"/>
6934
+
6935
+ <xsl:variable name="scale">
6936
+ <xsl:call-template name="getImageScale">
6937
+ <xsl:with-param name="indent" select="$indent"/>
6938
+ </xsl:call-template>
6939
+ </xsl:variable>
6940
+
6941
+ <!-- debug scale='<xsl:value-of select="$scale"/>', indent='<xsl:value-of select="$indent"/>' -->
6942
+
6943
+ <!-- <fo:external-graphic src="{$src}" fox:alt-text="Image {@alt}" vertical-align="middle"/> -->
6944
+ <fo:external-graphic src="{$src}" fox:alt-text="Image {@alt}" vertical-align="middle">
6945
+
6946
+ <xsl:variable name="width">
6947
+ <xsl:call-template name="setImageWidth"/>
6948
+ </xsl:variable>
6949
+ <xsl:if test="$width != ''">
6950
+ <xsl:attribute name="width"><xsl:value-of select="$width"/></xsl:attribute>
6951
+ </xsl:if>
6952
+ <xsl:variable name="height">
6953
+ <xsl:call-template name="setImageHeight"/>
6954
+ </xsl:variable>
6955
+ <xsl:if test="$height != ''">
6956
+ <xsl:attribute name="height"><xsl:value-of select="$height"/></xsl:attribute>
6957
+ </xsl:if>
6958
+
6959
+ <xsl:if test="$width = '' and $height = ''">
6960
+ <xsl:if test="number($scale) &lt; 100">
6961
+ <xsl:attribute name="content-width"><xsl:value-of select="number($scale)"/>%</xsl:attribute>
6962
+ <!-- <xsl:attribute name="content-width">scale-to-fit</xsl:attribute>
6963
+ <xsl:attribute name="content-height">100%</xsl:attribute>
6964
+ <xsl:attribute name="width">100%</xsl:attribute>
6965
+ <xsl:attribute name="scaling">uniform</xsl:attribute> -->
6966
+ </xsl:if>
6967
+ </xsl:if>
6968
+
6969
+ </fo:external-graphic>
6970
+
6864
6971
  </fo:inline>
6865
6972
  </xsl:when>
6866
6973
  <xsl:otherwise>
@@ -6881,25 +6988,23 @@
6881
6988
  <xsl:attribute name="content-width">scale-down-to-fit</xsl:attribute>
6882
6989
  <xsl:attribute name="scaling">uniform</xsl:attribute>
6883
6990
 
6884
- <xsl:apply-templates select="." mode="cross_image"/>
6991
+ <xsl:apply-templates select="." mode="cross_image"/>
6885
6992
 
6886
6993
  </fo:instream-foreign-object>
6887
6994
  </xsl:when>
6888
6995
  <xsl:otherwise>
6996
+ <!-- <fo:block>debug block image:
6997
+ <xsl:variable name="scale">
6998
+ <xsl:call-template name="getImageScale">
6999
+ <xsl:with-param name="indent" select="$indent"/>
7000
+ </xsl:call-template>
7001
+ </xsl:variable>
7002
+ <xsl:value-of select="concat('scale=', $scale,', indent=', $indent)"/>
7003
+ </fo:block> -->
6889
7004
  <fo:external-graphic src="{$src}" fox:alt-text="Image {@alt}" xsl:use-attribute-sets="image-graphic-style">
6890
- <xsl:if test="not(@mimetype = 'image/svg+xml') and ../*[local-name() = 'name'] and not(ancestor::*[local-name() = 'table'])">
6891
-
6892
- <xsl:if test="@width != '' and @width != 'auto' and @width != 'text-width' and @width != 'full-page-width' and @width != 'narrow'">
6893
- <xsl:attribute name="width">
6894
- <xsl:value-of select="@width"/>
6895
- </xsl:attribute>
6896
- </xsl:if>
7005
+ <xsl:if test="not(@mimetype = 'image/svg+xml') and (../*[local-name() = 'name'] or parent::*[local-name() = 'figure'][@unnumbered = 'true']) and not(ancestor::*[local-name() = 'table'])">
6897
7006
 
6898
- <xsl:if test="@height != '' and @height != 'auto'">
6899
- <xsl:attribute name="height">
6900
- <xsl:value-of select="@height"/>
6901
- </xsl:attribute>
6902
- </xsl:if>
7007
+ <xsl:call-template name="setImageWidthHeight"/>
6903
7008
 
6904
7009
  <xsl:choose>
6905
7010
  <xsl:when test="@width != '' and @width != 'auto' and @height != '' and @height != 'auto'">
@@ -6907,24 +7012,18 @@
6907
7012
  </xsl:when>
6908
7013
  <xsl:otherwise>
6909
7014
 
6910
- <xsl:variable name="img_src">
6911
- <xsl:choose>
6912
- <xsl:when test="not(starts-with(@src, 'data:'))"><xsl:value-of select="concat($basepath, @src)"/></xsl:when>
6913
- <xsl:otherwise><xsl:value-of select="@src"/></xsl:otherwise>
6914
- </xsl:choose>
7015
+ <xsl:variable name="scale">
7016
+ <xsl:call-template name="getImageScale">
7017
+ <xsl:with-param name="indent" select="$indent"/>
7018
+ </xsl:call-template>
6915
7019
  </xsl:variable>
6916
7020
 
6917
- <xsl:variable name="image_width_effective">
6918
-
6919
- <xsl:value-of select="$width_effective"/>
6920
-
7021
+ <xsl:variable name="scaleRatio">
7022
+ 0.985
6921
7023
  </xsl:variable>
6922
7024
 
6923
- <xsl:variable name="scale" select="java:org.metanorma.fop.Util.getImageScale($img_src, $image_width_effective, $height_effective)"/>
6924
7025
  <xsl:if test="number($scale) &lt; 100">
6925
-
6926
- <xsl:attribute name="content-width"><xsl:value-of select="$scale * 0.985"/>%</xsl:attribute><!-- 0.985 due border around image -->
6927
-
7026
+ <xsl:attribute name="content-width"><xsl:value-of select="number($scale) * number($scaleRatio)"/>%</xsl:attribute>
6928
7027
  </xsl:if>
6929
7028
  </xsl:otherwise>
6930
7029
  </xsl:choose>
@@ -6940,6 +7039,62 @@
6940
7039
  </xsl:choose>
6941
7040
  </xsl:template>
6942
7041
 
7042
+ <xsl:template name="setImageWidth">
7043
+ <xsl:if test="@width != '' and @width != 'auto' and @width != 'text-width' and @width != 'full-page-width' and @width != 'narrow'">
7044
+ <xsl:value-of select="@width"/>
7045
+ </xsl:if>
7046
+ </xsl:template>
7047
+ <xsl:template name="setImageHeight">
7048
+ <xsl:if test="@height != '' and @height != 'auto'">
7049
+ <xsl:value-of select="@height"/>
7050
+ </xsl:if>
7051
+ </xsl:template>
7052
+ <xsl:template name="setImageWidthHeight">
7053
+ <xsl:variable name="width">
7054
+ <xsl:call-template name="setImageWidth"/>
7055
+ </xsl:variable>
7056
+ <xsl:if test="$width != ''">
7057
+ <xsl:attribute name="width">
7058
+ <xsl:value-of select="$width"/>
7059
+ </xsl:attribute>
7060
+ </xsl:if>
7061
+ <xsl:variable name="height">
7062
+ <xsl:call-template name="setImageHeight"/>
7063
+ </xsl:variable>
7064
+ <xsl:if test="$height != ''">
7065
+ <xsl:attribute name="height">
7066
+ <xsl:value-of select="$height"/>
7067
+ </xsl:attribute>
7068
+ </xsl:if>
7069
+ </xsl:template>
7070
+
7071
+ <xsl:template name="getImageScale">
7072
+ <xsl:param name="indent"/>
7073
+ <xsl:variable name="indent_left">
7074
+ <xsl:choose>
7075
+ <xsl:when test="$indent != ''"><xsl:value-of select="$indent"/></xsl:when>
7076
+ <xsl:otherwise>0</xsl:otherwise>
7077
+ </xsl:choose>
7078
+ </xsl:variable>
7079
+ <xsl:variable name="img_src">
7080
+ <xsl:choose>
7081
+ <xsl:when test="not(starts-with(@src, 'data:'))"><xsl:value-of select="concat($basepath, @src)"/></xsl:when>
7082
+ <xsl:otherwise><xsl:value-of select="@src"/></xsl:otherwise>
7083
+ </xsl:choose>
7084
+ </xsl:variable>
7085
+
7086
+ <xsl:variable name="image_width_effective">
7087
+
7088
+ <xsl:value-of select="$width_effective - number($indent_left)"/>
7089
+
7090
+ </xsl:variable>
7091
+ <!-- <xsl:message>width_effective=<xsl:value-of select="$width_effective"/></xsl:message>
7092
+ <xsl:message>indent_left=<xsl:value-of select="$indent_left"/></xsl:message>
7093
+ <xsl:message>image_width_effective=<xsl:value-of select="$image_width_effective"/> for <xsl:value-of select="ancestor::ogc:p[1]/@id"/></xsl:message> -->
7094
+ <xsl:variable name="scale" select="java:org.metanorma.fop.Util.getImageScale($img_src, $image_width_effective, $height_effective)"/>
7095
+ <xsl:value-of select="$scale"/>
7096
+ </xsl:template>
7097
+
6943
7098
  <xsl:template name="image_src">
6944
7099
  <xsl:choose>
6945
7100
  <xsl:when test="@mimetype = 'image/svg+xml' and $images/images/image[@id = current()/@id]">
@@ -9620,6 +9775,7 @@
9620
9775
  </xsl:template>
9621
9776
 
9622
9777
  <xsl:template match="*[local-name() = 'ul'] | *[local-name() = 'ol']">
9778
+ <xsl:param name="indent">0</xsl:param>
9623
9779
  <xsl:choose>
9624
9780
  <xsl:when test="parent::*[local-name() = 'note'] or parent::*[local-name() = 'termnote']">
9625
9781
  <fo:block-container role="SKIP">
@@ -9634,7 +9790,9 @@
9634
9790
 
9635
9791
  <fo:block-container margin-left="0mm" role="SKIP">
9636
9792
  <fo:block>
9637
- <xsl:apply-templates select="." mode="list"/>
9793
+ <xsl:apply-templates select="." mode="list">
9794
+ <xsl:with-param name="indent" select="$indent"/>
9795
+ </xsl:apply-templates>
9638
9796
  </fo:block>
9639
9797
  </fo:block-container>
9640
9798
  </fo:block-container>
@@ -9642,7 +9800,9 @@
9642
9800
  <xsl:otherwise>
9643
9801
 
9644
9802
  <fo:block role="SKIP">
9645
- <xsl:apply-templates select="." mode="list"/>
9803
+ <xsl:apply-templates select="." mode="list">
9804
+ <xsl:with-param name="indent" select="$indent"/>
9805
+ </xsl:apply-templates>
9646
9806
  </fo:block>
9647
9807
 
9648
9808
  </xsl:otherwise>
@@ -9731,6 +9891,13 @@
9731
9891
  </xsl:template>
9732
9892
 
9733
9893
  <xsl:template match="*[local-name()='li']">
9894
+ <xsl:param name="indent">0</xsl:param>
9895
+ <!-- <fo:list-item xsl:use-attribute-sets="list-item-style">
9896
+ <fo:list-item-label end-indent="label-end()"><fo:block>x</fo:block></fo:list-item-label>
9897
+ <fo:list-item-body start-indent="body-start()" xsl:use-attribute-sets="list-item-body-style">
9898
+ <fo:block>debug li indent=<xsl:value-of select="$indent"/></fo:block>
9899
+ </fo:list-item-body>
9900
+ </fo:list-item> -->
9734
9901
  <fo:list-item xsl:use-attribute-sets="list-item-style">
9735
9902
  <xsl:copy-of select="@id"/>
9736
9903
 
@@ -9755,7 +9922,9 @@
9755
9922
 
9756
9923
  <xsl:call-template name="refine_list-item-body-style"/>
9757
9924
 
9758
- <xsl:apply-templates/>
9925
+ <xsl:apply-templates>
9926
+ <xsl:with-param name="indent" select="$indent"/>
9927
+ </xsl:apply-templates>
9759
9928
 
9760
9929
  <!-- <xsl:apply-templates select="node()[not(local-name() = 'note')]" />
9761
9930
 
@@ -11899,6 +12068,4 @@
11899
12068
  </xsl:if>
11900
12069
  </xsl:template>
11901
12070
 
11902
- <!-- update -->
11903
-
11904
12071
  </xsl:stylesheet>