Skip to content

Commit a096eae

Browse files
committed
Add & format table headers
1 parent 57635ad commit a096eae

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

cityehr-documentation-common/src/main/xslt/create-topic-pdf.xslt

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,11 +88,30 @@
8888
<xsl:for-each select="strow[1]/stentry">
8989
<fo:table-column/>
9090
</xsl:for-each>
91+
<xsl:if test="sthead">
92+
<fo:table-header>
93+
<xsl:apply-templates select="sthead" mode="body"/>
94+
</fo:table-header>
95+
</xsl:if>
9196
<fo:table-body>
9297
<xsl:apply-templates select="strow" mode="body"/>
9398
</fo:table-body>
9499
</fo:table>
95100
</xsl:template>
101+
102+
<xsl:template match="sthead" mode="body">
103+
<fo:table-row>
104+
<xsl:apply-templates select="stentry" mode="table-head"/>
105+
</fo:table-row>
106+
</xsl:template>
107+
108+
<xsl:template match="stentry" mode="table-head">
109+
<fo:table-cell border="1pt solid black" padding="4pt" background-color="#eeeeee">
110+
<fo:block font-weight="bold">
111+
<xsl:apply-templates select="node()" mode="body"/>
112+
</fo:block>
113+
</fo:table-cell>
114+
</xsl:template>
96115

97116
<xsl:template match="strow" mode="body">
98117
<fo:table-row>

0 commit comments

Comments
 (0)