Commit de2d4c60 authored by Adam Svoboda's avatar Adam Svoboda

finnished XSL-FO to generate pdf

parent a016ff3a
......@@ -18,15 +18,40 @@
</fo:layout-master-set>
<fo:page-sequence master-reference="mytemplate">
<fo:flow flow-name="xsl-region-body">
<fo:block font-size="18pt" text-align="left" font-weight="bold" space-before="10px">
<xsl:value-of select="country/name" />
<fo:block page-break-before="always" font-size="18pt" text-align="left" font-weight="bold" space-before="10px">
Countries
</fo:block>
<fo:list-block provisional-distance-between-starts="10px" start-indent="10px" font-size="10pt" space-before="10px">
<xsl:for-each select="country" >
<fo:list-item>
<fo:list-item-label end-indent="label-end()">
<fo:block>-</fo:block>
</fo:list-item-label>
<fo:list-item-body start-indent="body-start()">
<fo:block>
<fo:basic-link text-decoration="underline">
<xsl:attribute name="internal-destination">
<xsl:value-of select="@cid"/>
</xsl:attribute>
<xsl:value-of select="name" />
</fo:basic-link>
</fo:block>
</fo:list-item-body>
</fo:list-item>
</xsl:for-each>
</fo:list-block>
<xsl:for-each select="country">
<fo:block page-break-before="always" font-size="18pt" text-align="left" font-weight="bold" space-before="10px">
<xsl:attribute name="id">
<xsl:value-of select="@cid"/>
</xsl:attribute>
<xsl:value-of select="name" />
</fo:block>
<fo:block font-size="14pt" text-align="left" font-weight="bold" space-before="10px" space-after="7px">
Background
</fo:block>
<xsl:for-each select="country/background/par">
<xsl:for-each select="background/par">
<fo:block font-size="10pt" text-align="justify" space-before="3px">
<xsl:value-of select="." />
</fo:block>
......@@ -38,7 +63,7 @@
Location
</fo:block>
<fo:block font-size="10pt" text-align="left" space-before="10px">
<xsl:value-of select="country/geography/location" />
<xsl:value-of select="geography/location" />
</fo:block>
<fo:block font-size="12pt" text-align="left" font-weight="bold" space-before="10px">
Coordinates
......@@ -50,7 +75,7 @@
<fo:block></fo:block>
</fo:list-item-label>
<fo:list-item-body start-indent="body-start()">
<fo:block>Latitude: <xsl:value-of select="country/geography/coordinates/latitude" /></fo:block>
<fo:block>Latitude: <xsl:value-of select="geography/coordinates/latitude" /></fo:block>
</fo:list-item-body>
</fo:list-item>
<fo:list-item>
......@@ -58,7 +83,7 @@
<fo:block></fo:block>
</fo:list-item-label>
<fo:list-item-body start-indent="body-start()">
<fo:block>Longitude: <xsl:value-of select="country/geography/coordinates/longitude" /></fo:block>
<fo:block>Longitude: <xsl:value-of select="geography/coordinates/longitude" /></fo:block>
</fo:list-item-body>
</fo:list-item>
</fo:list-block>
......@@ -72,7 +97,7 @@
<fo:block></fo:block>
</fo:list-item-label>
<fo:list-item-body start-indent="body-start()">
<fo:block>Total: <xsl:value-of select="country/geography/area/a_total" /></fo:block>
<fo:block>Total: <xsl:value-of select="geography/area/a_total" /></fo:block>
</fo:list-item-body>
</fo:list-item>
<fo:list-item>
......@@ -80,7 +105,7 @@
<fo:block></fo:block>
</fo:list-item-label>
<fo:list-item-body start-indent="body-start()">
<fo:block>Land: <xsl:value-of select="country/geography/area/a_land" /></fo:block>
<fo:block>Land: <xsl:value-of select="geography/area/a_land" /></fo:block>
</fo:list-item-body>
</fo:list-item>
<fo:list-item>
......@@ -88,7 +113,7 @@
<fo:block></fo:block>
</fo:list-item-label>
<fo:list-item-body start-indent="body-start()">
<fo:block>Water: <xsl:value-of select="country/geography/area/a_water" /></fo:block>
<fo:block>Water: <xsl:value-of select="geography/area/a_water" /></fo:block>
</fo:list-item-body>
</fo:list-item>
</fo:list-block>
......@@ -96,19 +121,19 @@
Climate
</fo:block>
<fo:block font-size="10pt" text-align="left" space-before="10px">
<xsl:value-of select="country/geography/climate" />
<xsl:value-of select="geography/climate" />
</fo:block>
<fo:block font-size="12pt" text-align="left" font-weight="bold" space-before="10px">
Terrain
</fo:block>
<fo:block font-size="10pt" text-align="left" space-before="10px">
<xsl:value-of select="country/geography/terrain" />
<xsl:value-of select="geography/terrain" />
</fo:block>
<fo:block font-size="12pt" text-align="left" font-weight="bold" space-before="10px">
Resources
</fo:block>
<fo:block font-size="10pt" text-align="left" space-before="10px">
<xsl:for-each select="country/geography/resources/resource">
<xsl:for-each select="geography/resources/resource">
<xsl:value-of select="." />
<xsl:if test="not (position()=last())">
<xsl:text>, </xsl:text>
......@@ -125,7 +150,7 @@
<fo:block></fo:block>
</fo:list-item-label>
<fo:list-item-body start-indent="body-start()">
<fo:block>Agricultural: <xsl:value-of select="country/geography/land/l_agricultural" /></fo:block>
<fo:block>Agricultural: <xsl:value-of select="geography/land/l_agricultural" /></fo:block>
</fo:list-item-body>
</fo:list-item>
<fo:list-item>
......@@ -133,7 +158,7 @@
<fo:block></fo:block>
</fo:list-item-label>
<fo:list-item-body start-indent="body-start()">
<fo:block>Forest: <xsl:value-of select="country/geography/land/l_forest" /></fo:block>
<fo:block>Forest: <xsl:value-of select="geography/land/l_forest" /></fo:block>
</fo:list-item-body>
</fo:list-item>
<fo:list-item>
......@@ -141,7 +166,7 @@
<fo:block></fo:block>
</fo:list-item-label>
<fo:list-item-body start-indent="body-start()">
<fo:block>Other: <xsl:value-of select="country/geography/land/l_outher" /></fo:block>
<fo:block>Other: <xsl:value-of select="geography/land/l_outher" /></fo:block>
</fo:list-item-body>
</fo:list-item>
</fo:list-block>
......@@ -152,7 +177,7 @@
Population
</fo:block>
<fo:block font-size="10pt" text-align="left" space-before="10px">
<xsl:value-of select="country/society/population" />
<xsl:value-of select="society/population" />
</fo:block>
<fo:block font-size="12pt" text-align="left" font-weight="bold" space-before="10px">
Nationality
......@@ -164,7 +189,7 @@
<fo:block></fo:block>
</fo:list-item-label>
<fo:list-item-body start-indent="body-start()">
<fo:block>Noun: <xsl:value-of select="country/society/nationality/n_noun" /></fo:block>
<fo:block>Noun: <xsl:value-of select="society/nationality/n_noun" /></fo:block>
</fo:list-item-body>
</fo:list-item>
<fo:list-item>
......@@ -172,40 +197,40 @@
<fo:block></fo:block>
</fo:list-item-label>
<fo:list-item-body start-indent="body-start()">
<fo:block>Longitude: <xsl:value-of select="country/society/nationality/n_adjective" /></fo:block>
<fo:block>Longitude: <xsl:value-of select="society/nationality/n_adjective" /></fo:block>
</fo:list-item-body>
</fo:list-item>
</fo:list-block>
<fo:block font-size="12pt" text-align="left" font-weight="bold" space-before="10px">
Etnicity
</fo:block>
<fo:list-block provisional-distance-between-starts="10px"
<fo:list-block provisional-distance-between-starts="10px"
start-indent="10px" font-size="10pt" space-before="10px">
<xsl:for-each select="country/society/etnicity/etnic_group" >
<fo:list-item>
<fo:list-item-label end-indent="label-end()">
<fo:block></fo:block>
</fo:list-item-label>
<fo:list-item-body start-indent="body-start()">
<fo:block>
<xsl:value-of select="eg_name" />: <xsl:value-of select="eg_percentage" />
</fo:block>
</fo:list-item-body>
</fo:list-item>
</xsl:for-each>
<xsl:for-each select="society/etnicity/etnic_group" >
<fo:list-item>
<fo:list-item-label end-indent="label-end()">
<fo:block></fo:block>
</fo:list-item-label>
<fo:list-item-body start-indent="body-start()">
<fo:block>
<xsl:value-of select="eg_name" />: <xsl:value-of select="eg_percentage" />
</fo:block>
</fo:list-item-body>
</fo:list-item>
</xsl:for-each>
</fo:list-block>
<xsl:if test="count(/country/society/etnicity/e_note)=1">
<xsl:if test="count(/society/etnicity/e_note)=1">
<fo:block font-size="10pt" text-align="left" space-before="3px">
note: <xsl:value-of select="country/society/etnicity/e_note" />
note: <xsl:value-of select="society/etnicity/e_note" />
</fo:block>
</xsl:if>
<fo:block font-size="12pt" text-align="left" font-weight="bold" space-before="10px">
Language
</fo:block>
<fo:block font-size="10pt" text-align="left" space-before="10px">
<xsl:value-of select="country/society/languages/official" />
<xsl:value-of select="society/languages/official" />
<xsl:text>(official)</xsl:text>
<xsl:for-each select="country/society/languages/language">
<xsl:for-each select="society/languages/language">
<xsl:text>, </xsl:text>
<xsl:value-of select="." />
</xsl:for-each>
......@@ -213,51 +238,51 @@
<fo:block font-size="12pt" text-align="left" font-weight="bold" space-before="10px">
Religion
</fo:block>
<fo:list-block provisional-distance-between-starts="10px"
<fo:list-block provisional-distance-between-starts="10px"
start-indent="10px" font-size="10pt" space-before="10px">
<xsl:for-each select="country/society/religions/religion" >
<fo:list-item>
<fo:list-item-label end-indent="label-end()">
<fo:block></fo:block>
</fo:list-item-label>
<fo:list-item-body start-indent="body-start()">
<fo:block>
<xsl:value-of select="r_name" />: <xsl:value-of select="r_percentage" />
</fo:block>
</fo:list-item-body>
</fo:list-item>
</xsl:for-each>
<xsl:for-each select="society/religions/religion" >
<fo:list-item>
<fo:list-item-label end-indent="label-end()">
<fo:block></fo:block>
</fo:list-item-label>
<fo:list-item-body start-indent="body-start()">
<fo:block>
<xsl:value-of select="r_name" />: <xsl:value-of select="r_percentage" />
</fo:block>
</fo:list-item-body>
</fo:list-item>
</xsl:for-each>
</fo:list-block>
<xsl:if test="count(/country/society/religions/r_note)=1">
<xsl:if test="count(/society/religions/r_note)=1">
<fo:block font-size="10pt" text-align="left" space-before="3px">
note: <xsl:value-of select="country/society/religions/r_note" />
note: <xsl:value-of select="society/religions/r_note" />
</fo:block>
</xsl:if>
<fo:block font-size="12pt" text-align="left" font-weight="bold" space-before="10px">
Age
</fo:block>
<fo:list-block provisional-distance-between-starts="10px"
<fo:list-block provisional-distance-between-starts="10px"
start-indent="10px" font-size="10pt" space-before="10px">
<xsl:for-each select="country/society/age/a_group" >
<fo:list-item>
<fo:list-item-label end-indent="label-end()">
<fo:block></fo:block>
</fo:list-item-label>
<fo:list-item-body start-indent="body-start()">
<fo:block>
<xsl:text>Age group of </xsl:text>
<xsl:value-of select="ag_range" />
<xsl:text>: </xsl:text>
<xsl:value-of select="ag_percentage" />
<xsl:text> of total population (</xsl:text>
<xsl:value-of select="ag_male" />
<xsl:text> male/</xsl:text>
<xsl:value-of select="ag_female" />
<xsl:text> female)</xsl:text>
</fo:block>
</fo:list-item-body>
</fo:list-item>
</xsl:for-each>
<xsl:for-each select="society/age/a_group" >
<fo:list-item>
<fo:list-item-label end-indent="label-end()">
<fo:block></fo:block>
</fo:list-item-label>
<fo:list-item-body start-indent="body-start()">
<fo:block>
<xsl:text>Age group of </xsl:text>
<xsl:value-of select="ag_range" />
<xsl:text>: </xsl:text>
<xsl:value-of select="ag_percentage" />
<xsl:text> of total population (</xsl:text>
<xsl:value-of select="ag_male" />
<xsl:text> male/</xsl:text>
<xsl:value-of select="ag_female" />
<xsl:text> female)</xsl:text>
</fo:block>
</fo:list-item-body>
</fo:list-item>
</xsl:for-each>
</fo:list-block>
<fo:block font-size="10pt" text-align="left" space-before="3px">
Median:
......@@ -269,7 +294,7 @@
<fo:block></fo:block>
</fo:list-item-label>
<fo:list-item-body start-indent="body-start()">
<fo:block>Total: <xsl:value-of select="country/society/age/a_median/am_total" /></fo:block>
<fo:block>Total: <xsl:value-of select="society/age/a_median/am_total" /></fo:block>
</fo:list-item-body>
</fo:list-item>
<fo:list-item>
......@@ -277,7 +302,7 @@
<fo:block></fo:block>
</fo:list-item-label>
<fo:list-item-body start-indent="body-start()">
<fo:block>Male: <xsl:value-of select="country/society/age/a_median/am_male" /></fo:block>
<fo:block>Male: <xsl:value-of select="society/age/a_median/am_male" /></fo:block>
</fo:list-item-body>
</fo:list-item>
<fo:list-item>
......@@ -285,7 +310,7 @@
<fo:block></fo:block>
</fo:list-item-label>
<fo:list-item-body start-indent="body-start()">
<fo:block>Female: <xsl:value-of select="country/society/age/a_median/am_female" /></fo:block>
<fo:block>Female: <xsl:value-of select="society/age/a_median/am_female" /></fo:block>
</fo:list-item-body>
</fo:list-item>
</fo:list-block>
......@@ -299,7 +324,7 @@
<fo:block></fo:block>
</fo:list-item-label>
<fo:list-item-body start-indent="body-start()">
<fo:block>Total: <xsl:value-of select="country/society/age/a_life_expectency/al_total" /></fo:block>
<fo:block>Total: <xsl:value-of select="society/age/a_life_expectency/al_total" /></fo:block>
</fo:list-item-body>
</fo:list-item>
<fo:list-item>
......@@ -307,7 +332,7 @@
<fo:block></fo:block>
</fo:list-item-label>
<fo:list-item-body start-indent="body-start()">
<fo:block>Male: <xsl:value-of select="country/society/age/a_life_expectency/al_male" /></fo:block>
<fo:block>Male: <xsl:value-of select="society/age/a_life_expectency/al_male" /></fo:block>
</fo:list-item-body>
</fo:list-item>
<fo:list-item>
......@@ -315,7 +340,7 @@
<fo:block></fo:block>
</fo:list-item-label>
<fo:list-item-body start-indent="body-start()">
<fo:block>Female: <xsl:value-of select="country/society/age/a_life_expectency/al_female" /></fo:block>
<fo:block>Female: <xsl:value-of select="society/age/a_life_expectency/al_female" /></fo:block>
</fo:list-item-body>
</fo:list-item>
</fo:list-block>
......@@ -324,29 +349,29 @@
</fo:block>
<fo:block font-size="10pt" text-align="left" space-before="10px">
People living in urban areas:
<xsl:value-of select="country/society/urbanization/u_population" />
<xsl:value-of select="society/urbanization/u_population" />
of total population
</fo:block>
<fo:block font-size="10pt" text-align="left" space-before="3px">
Rate of urbanization:
<xsl:value-of select="country/society/urbanization/u_rate" />
<xsl:value-of select="society/urbanization/u_rate" />
</fo:block>
<fo:list-block provisional-distance-between-starts="10px"
<fo:list-block provisional-distance-between-starts="10px"
start-indent="10px" font-size="10pt" space-before="3px">
<xsl:for-each select="country/society/urbanization/u_major_areas/u_major_area" >
<fo:list-item>
<fo:list-item-label end-indent="label-end()">
<fo:block></fo:block>
</fo:list-item-label>
<fo:list-item-body start-indent="body-start()">
<fo:block>
<xsl:value-of select="uma_name" />: <xsl:value-of select="uma_population" />
</fo:block>
</fo:list-item-body>
</fo:list-item>
</xsl:for-each>
<xsl:for-each select="society/urbanization/u_major_areas/u_major_area" >
<fo:list-item>
<fo:list-item-label end-indent="label-end()">
<fo:block></fo:block>
</fo:list-item-label>
<fo:list-item-body start-indent="body-start()">
<fo:block>
<xsl:value-of select="uma_name" />: <xsl:value-of select="uma_population" />
</fo:block>
</fo:list-item-body>
</fo:list-item>
</xsl:for-each>
</fo:list-block>
<xsl:if test="count(/country/society/literacy)=1">
<xsl:if test="count(/society/literacy)=1">
<fo:block font-size="12pt" text-align="left" font-weight="bold" space-before="10px">
Literacy
</fo:block>
......@@ -357,7 +382,7 @@
<fo:block></fo:block>
</fo:list-item-label>
<fo:list-item-body start-indent="body-start()">
<fo:block>Total: <xsl:value-of select="country/society/literacy/l_total" /></fo:block>
<fo:block>Total: <xsl:value-of select="society/literacy/l_total" /></fo:block>
</fo:list-item-body>
</fo:list-item>
<fo:list-item>
......@@ -365,7 +390,7 @@
<fo:block></fo:block>
</fo:list-item-label>
<fo:list-item-body start-indent="body-start()">
<fo:block>Male: <xsl:value-of select="country/society/literacy/l_male" /></fo:block>
<fo:block>Male: <xsl:value-of select="society/literacy/l_male" /></fo:block>
</fo:list-item-body>
</fo:list-item>
<fo:list-item>
......@@ -373,7 +398,7 @@
<fo:block></fo:block>
</fo:list-item-label>
<fo:list-item-body start-indent="body-start()">
<fo:block>Female: <xsl:value-of select="country/society/literacy/l_female" /></fo:block>
<fo:block>Female: <xsl:value-of select="society/literacy/l_female" /></fo:block>
</fo:list-item-body>
</fo:list-item>
</fo:list-block>
......@@ -385,33 +410,33 @@
Government type
</fo:block>
<fo:block font-size="10pt" text-align="left" space-before="10px">
<xsl:value-of select="country/government/government_type" />
<xsl:value-of select="government/government_type" />
</fo:block>
<fo:block font-size="12pt" text-align="left" font-weight="bold" space-before="10px">
Capital
</fo:block>
<fo:block font-size="10pt" text-align="left" space-before="10px">
<xsl:value-of select="country/government/capital" />
<xsl:value-of select="government/capital" />
</fo:block>
<fo:block font-size="12pt" text-align="left" font-weight="bold" space-before="10px">
Chief of state
</fo:block>
<fo:block font-size="10pt" text-align="left" space-before="10px">
<xsl:value-of select="country/government/chief_of_state/c_name" />
(elected <xsl:value-of select="country/government/chief_of_state/c_elected" />)
<xsl:value-of select="government/chief_of_state/c_name" />
(elected <xsl:value-of select="government/chief_of_state/c_elected" />)
</fo:block>
<fo:block font-size="12pt" text-align="left" font-weight="bold" space-before="10px">
Head of government
</fo:block>
<fo:block font-size="10pt" text-align="left" space-before="10px">
<xsl:value-of select="country/government/head_of_goverment/h_name" />
(elected <xsl:value-of select="country/government/head_of_goverment/h_elected" />)
<xsl:value-of select="government/head_of_goverment/h_name" />
(elected <xsl:value-of select="government/head_of_goverment/h_elected" />)
</fo:block>
<fo:block font-size="12pt" text-align="left" font-weight="bold" space-before="10px">
Legal system
</fo:block>
<fo:block font-size="10pt" text-align="left" space-before="10px">
<xsl:value-of select="country/government/legal_system" />
<xsl:value-of select="government/legal_system" />
</fo:block>
<fo:block font-size="12pt" text-align="left" font-weight="bold" space-before="10px">
Symbols
......@@ -420,7 +445,7 @@
Symbols:
</fo:block>
<fo:block font-size="10pt" text-align="left" space-before="3px">
<xsl:for-each select="country/government/symbols/symbol">
<xsl:for-each select="government/symbols/symbol">
<xsl:value-of select="." />
<xsl:if test="not (position()=last())">
<xsl:text>, </xsl:text>
......@@ -431,7 +456,7 @@
Colors:
</fo:block>
<fo:block font-size="10pt" text-align="left" space-before="3px">
<xsl:for-each select="country/government/symbols/s_color">
<xsl:for-each select="government/symbols/s_color">
<xsl:value-of select="." />
<xsl:if test="not (position()=last())">
<xsl:text>, </xsl:text>
......@@ -442,7 +467,7 @@
Anthem:
</fo:block>
<fo:block font-size="10pt" text-align="left" space-before="3px">
<xsl:value-of select="country/government/symbols/anthem" />
<xsl:value-of select="government/symbols/anthem" />
</fo:block>
<fo:block font-size="14pt" text-align="left" font-weight="bold" space-before="10px">
Economy
......@@ -450,7 +475,7 @@
<fo:block font-size="12pt" text-align="left" font-weight="bold" space-before="10px" space-after="7px">
Overview
</fo:block>
<xsl:for-each select="country/economy/e_overview/par">
<xsl:for-each select="economy/e_overview/par">
<fo:block font-size="10pt" text-align="justify" space-before="3px">
<xsl:value-of select="." />
</fo:block>
......@@ -460,37 +485,37 @@
</fo:block>
<fo:block font-size="10pt" text-align="left" space-before="10px">
GDP amount:
<xsl:value-of select="country/economy/GDP/GDP_amount" />
<xsl:value-of select="economy/GDP/GDP_amount" />
</fo:block>
<fo:block font-size="10pt" text-align="left" space-before="3px">
GDP growth:
<xsl:value-of select="country/economy/GDP/GDP_growth" />
<xsl:value-of select="economy/GDP/GDP_growth" />
</fo:block>
<fo:block font-size="10pt" text-align="left" space-before="3px">
GDP per capita:
<xsl:value-of select="country/economy/GDP/GDP_per_capita" />
<xsl:value-of select="economy/GDP/GDP_per_capita" />
</fo:block>
<fo:block font-size="10pt" text-align="left" space-before="3px">
GDP savings:
<xsl:value-of select="country/economy/GDP/GDP_savings" />
<xsl:value-of select="economy/GDP/GDP_savings" />
</fo:block>
<fo:block font-size="10pt" text-align="left" space-before="3px">
GDP from agriculture:
<xsl:value-of select="country/economy/GDP/GDP_sectors/GDPs_agriculture" />
<xsl:value-of select="economy/GDP/GDP_sectors/GDPs_agriculture" />
</fo:block>
<fo:block font-size="10pt" text-align="left" space-before="3px">
GDP from industry:
<xsl:value-of select="country/economy/GDP/GDP_sectors/GDPs_industry" />
<xsl:value-of select="economy/GDP/GDP_sectors/GDPs_industry" />
</fo:block>
<fo:block font-size="10pt" text-align="left" space-before="3px">
GDP from services:
<xsl:value-of select="country/economy/GDP/GDP_sectors/GDPs_services" />
<xsl:value-of select="economy/GDP/GDP_sectors/GDPs_services" />
</fo:block>
<fo:block font-size="12pt" text-align="left" font-weight="bold" space-before="10px">
Agricultural products
</fo:block>
<fo:block font-size="10pt" text-align="left" space-before="10px">
<xsl:for-each select="country/economy/agricultural_products/agricultural_product">
<xsl:for-each select="economy/agricultural_products/agricultural_product">
<xsl:value-of select="." />
<xsl:if test="not (position()=last())">
<xsl:text>, </xsl:text>
......@@ -501,7 +526,7 @@
Industries
</fo:block>
<fo:block font-size="10pt" text-align="left" space-before="10px">
<xsl:for-each select="country/economy/industries/industry">
<xsl:for-each select="economy/industries/industry">
<xsl:value-of select="." />
<xsl:if test="not (position()=last())">
<xsl:text>, </xsl:text>
......@@ -513,42 +538,42 @@
</fo:block>
<fo:block font-size="10pt" text-align="left" space-before="10px">
Total amount:
<xsl:value-of select="country/economy/labor_force/lf_amount" />
<xsl:value-of select="economy/labor_force/lf_amount" />
</fo:block>
<fo:block font-size="10pt" text-align="left" space-before="3px">
In agriculture:
<xsl:value-of select="country/economy/labor_force/lf_sectors/lfs_agriculture" />
<xsl:value-of select="economy/labor_force/lf_sectors/lfs_agriculture" />
</fo:block>
<fo:block font-size="10pt" text-align="left" space-before="3px">
In industry:
<xsl:value-of select="country/economy/labor_force/lf_sectors/lfs_industry" />
<xsl:value-of select="economy/labor_force/lf_sectors/lfs_industry" />
</fo:block>
<fo:block font-size="10pt" text-align="left" space-before="3px">
In services:
<xsl:value-of select="country/economy/labor_force/lf_sectors/lfs_services" />
<xsl:value-of select="economy/labor_force/lf_sectors/lfs_services" />
</fo:block>
<fo:block font-size="12pt" text-align="left" font-weight="bold" space-before="10px">
Unemployment
</fo:block>
<fo:block font-size="10pt" text-align="left" space-before="10px">
<xsl:value-of select="country/economy/unemployment" />
<xsl:value-of select="economy/unemployment" />
</fo:block>
<fo:block font-size="12pt" text-align="left" font-weight="bold" space-before="10px">
Inflation
</fo:block>
<fo:block font-size="10pt" text-align="left" space-before="10px">
<xsl:value-of select="country/economy/inflation" />
<xsl:value-of select="economy/inflation" />
</fo:block>
<fo:block font-size="12pt" text-align="left" font-weight="bold" space-before="10px">
Exports
</fo:block>
<fo:block font-size="10pt" text-align="left" space-before="10px">
Total amount:
<xsl:value-of select="country/economy/exports_and_imports/exports/e_amount" />
<xsl:value-of select="economy/exports_and_imports/exports/e_amount" />
</fo:block>
<fo:block font-size="10pt" text-align="left" space-before="3px">
Partners:
<xsl:for-each select="country/economy/exports_and_imports/exports/e_partners/e_partner">
<xsl:for-each select="economy/exports_and_imports/exports/e_partners/e_partner">
<xsl:value-of select="ep_name" />
<xsl:text>(</xsl:text>
<xsl:value-of select="ep_percentage" />
......@@ -560,7 +585,7 @@
</fo:block>
<fo:block font-size="10pt" text-align="left" space-before="3px">
Commodities:
<xsl:for-each select="country/economy/exports_and_imports/exports/e_commodities/e_commodity">
<xsl:for-each select="economy/exports_and_imports/exports/e_commodities/e_commodity">
<xsl:value-of select="." />
<xsl:if test="not (position()=last())">
<xsl:text>, </xsl:text>
......@@ -572,11 +597,11 @@
</fo:block>
<fo:block font-size="10pt" text-align="left" space-before="10px">
Total amount:
<xsl:value-of select="country/economy/exports_and_imports/imports/i_amount" />
<xsl:value-of select="economy/exports_and_imports/imports/i_amount" />
</fo:block>
<fo:block font-size="10pt" text-align="left" space-before="3px">
Partners:
<xsl:for-each select="country/economy/exports_and_imports/imports/i_partners/i_partner">
<xsl:for-each select="economy/exports_and_imports/imports/i_partners/i_partner">
<xsl:value-of select="ip_name" />
<xsl:text>(</xsl:text>
<xsl:value-of select="ip_percentage" />
......@@ -588,7 +613,7 @@
</fo:block>
<fo:block font-size="10pt" text-align="left" space-before="3px">
Commodities:
<xsl:for-each select="country/economy/exports_and_imports/imports/i_commodities/i_commodity">
<xsl:for-each select="economy/exports_and_imports/imports/i_commodities/i_commodity">
<xsl:value-of select="." />
<xsl:if test="not (position()=last())">
<xsl:text>, </xsl:text>
......@@ -603,28 +628,28 @@
</fo:block>
<fo:block font-size="10pt" text-align="left" space-before="10px">
Access:
<xsl:value-of select="country/energy/electricity/e_access" />
<xsl:value-of select="energy/electricity/e_access" />
</fo:block>
<fo:block font-size="10pt" text-align="left" space-before="3px">
Production:
<xsl:value-of select="country/energy/electricity/e_production" />
<xsl:value-of select="energy/electricity/e_production" />
</fo:block>
<fo:block font-size="10pt" text-align="left" space-before="3px">
Consumption:
<xsl:value-of select="country/energy/electricity/e_consumption" />
<xsl:value-of select="energy/electricity/e_consumption" />
</fo:block>
<fo:block font-size="10pt" text-align="left" space-before="3px">
Exports:
<xsl:value-of select="country/energy/electricity/e_exports" />
<xsl:value-of select="energy/electricity/e_exports" />
</fo:block>
<fo:block font-size="10pt" text-align="left" space-before="3px">
Imports:
<xsl:value-of select="country/energy/electricity/e_imports" />
<xsl:value-of select="energy/electricity/e_imports" />
</fo:block>
<fo:block font-size="10pt" text-align="left" space-before="7px">
Sources:
</fo:block>
<xsl:for-each select="country/energy/electricity/e_sources/e_source">
<xsl:for-each select="energy/electricity/e_sources/e_source">
<fo:block font-size="10pt" text-align="left" space-before="3px">
<xsl:value-of select="es_type" /><xsl:text>: </xsl:text>
<xsl:value-of select="es_percentage" />
......@@ -640,7 +665,7 @@
<fo:block></fo:block>
</fo:list-item-label>
<fo:list-item-body start-indent="body-start()">
<fo:block>Production: <xsl:value-of select="country/energy/crude_oil/co_production" /></fo:block>
<fo:block>Production: <xsl:value-of select="energy/crude_oil/co_production" /></fo:block>
</fo:list-item-body>
</fo:list-item>
<fo:list-item>
......@@ -648,7 +673,7 @@
<fo:block></fo:block>
</fo:list-item-label>
<fo:list-item-body start-indent="body-start()">
<fo:block>Exports: <xsl:value-of select="country/energy/crude_oil/co_exports" /></fo:block>
<fo:block>Exports: <xsl:value-of select="energy/crude_oil/co_exports" /></fo:block>
</fo:list-item-body>
</fo:list-item>
<fo:list-item>
......@@ -656,7 +681,7 @@
<fo:block></fo:block>
</fo:list-item-label>
<fo:list-item-body start-indent="body-start()">
<fo:block>Imports: <xsl:value-of select="country/energy/crude_oil/co_imports" /></fo:block>
<fo:block>Imports: <xsl:value-of select="energy/crude_oil/co_imports" /></fo:block>
</fo:list-item-body>
</fo:list-item>
</fo:list-block>
......@@ -670,7 +695,7 @@
<fo:block></fo:block>
</fo:list-item-label>
<fo:list-item-body start-indent="body-start()">
<fo:block>Production: <xsl:value-of select="country/energy/refined_petroleum_products/rpp_production" /></fo:block>
<fo:block>Production: <xsl:value-of select="energy/refined_petroleum_products/rpp_production" /></fo:block>
</fo:list-item-body>
</fo:list-item>
<fo:list-item>
......@@ -678,7 +703,7 @@
<fo:block></fo:block>
</fo:list-item-label>
<fo:list-item-body start-indent="body-start()">
<fo:block>Consumption: <xsl:value-of select="country/energy/refined_petroleum_products/rpp_consumption" /></fo:block>
<fo:block>Consumption: <xsl:value-of select="energy/refined_petroleum_products/rpp_consumption" /></fo:block>
</fo:list-item-body>
</fo:list-item>
<fo:list-item>
......@@ -686,7 +711,7 @@
<fo:block></fo:block>
</fo:list-item-label>
<fo:list-item-body start-indent="body-start()">
<fo:block>Exports: <xsl:value-of select="country/energy/refined_petroleum_products/rpp_exports" /></fo:block>
<fo:block>Exports: <xsl:value-of select="energy/refined_petroleum_products/rpp_exports" /></fo:block>
</fo:list-item-body>
</fo:list-item>
<fo:list-item>
......@@ -694,7 +719,7 @@
<fo:block></fo:block>
</fo:list-item-label>
<fo:list-item-body start-indent="body-start()">
<fo:block>Imports: <xsl:value-of select="country/energy/refined_petroleum_products/rpp_imports" /></fo:block>
<fo:block>Imports: <xsl:value-of select="energy/refined_petroleum_products/rpp_imports" /></fo:block>
</fo:list-item-body>
</fo:list-item>
</fo:list-block>
......@@ -708,7 +733,7 @@
<fo:block></fo:block>
</fo:list-item-label>
<fo:list-item-body start-indent="body-start()">
<fo:block>Production: <xsl:value-of select="country/energy/natural_gas/ng_production" /></fo:block>
<fo:block>Production: <xsl:value-of select="energy/natural_gas/ng_production" /></fo:block>
</fo:list-item-body>
</fo:list-item>
<fo:list-item>
......@@ -716,7 +741,7 @@