Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion schemas/EN10168/v0.5.0/stylesheet.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -250,13 +250,18 @@
<fo:table-body>
<xsl:for-each select="$ProductDescription/SupplementaryInformation/*">
<fo:table-row>
<!-- Link and image types (url, qr-code, ...) take the bare Value so the
KeyValue template can render them as a link or graphic; every other
type keeps the "Value Unit" text it always rendered. -->
<xsl:variable name="mediaType" select="string(./Type) = ('url', 'email', 'phone', 'qr-code', 'image')" />
<xsl:variable name="concatenatedValue">
<xsl:value-of select="concat(./Value, ' ', ./Unit)" />
<xsl:value-of select="if ($mediaType) then string(./Value) else concat(./Value, ' ', ./Unit)" />
</xsl:variable>
<xsl:call-template name="KeyValue">
<xsl:with-param name="number" select="concat(local-name(), ' ')" />
<xsl:with-param name="key" select="Key" />
<xsl:with-param name="value" select="$concatenatedValue" />
<xsl:with-param name="type" select="if ($mediaType) then string(./Type) else 'default'" />
<xsl:with-param name="paddingBottom" select="$cellPaddingBottom" />
<xsl:with-param name="language" select="$documentLanguage" />
</xsl:call-template>
Expand Down
Loading