У меня есть настраиваемое многострочное текстовое поле, но хотя код для многострочного адреса клиента работает, настраиваемое поле - нет! Он добавляет пустую строку и показывает код xsl в pdf!
<?xml version="1.0" encoding="UTF-8"?>
<!-- # Last commit $Id: unified.xsl 11742 2011-02-03 16:48:17Z jkay $ -->
<!-- -->
<!-- # Copyright (c) 2008-2011, Workbooks Online Limited. All Rights Reserved. -->
<!-- -->
<!-- Generic Output Document Template - modify as required. We recommend you -->
<!-- continue to use the configuration tools in the Workbooks Desktop to set -->
<!-- parameters to your templates - these appear beneath the /hash/text path. -->
<!-- -->
<xslt:stylesheet xmlns:date="http://exslt.org/dates-and-times" xmlns:str="http://exslt.org/strings" xmlns:xslt="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:xf="http://www.ecrion.com/xf/1.0" xmlns:xc="http://www.ecrion.com/2008/xc" xmlns:xfd="http://www.ecrion.com/xfd/1.0" xmlns:svg="http://www.w3.org/2000/svg" xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" extension-element-prefixes="date str">
<xslt:output indent="yes" encoding="utf-8"/>
<xsl:template match="/">
<fo:root>
<!-- === THIRD-PARTY ADDRESS AND DOCUMENT REFERENCES === -->
<fo:block space-before.optimum="20pt" space-after.optimum="15pt" font-size="9pt">
<fo:table table-layout="fixed" width="100%" border-collapse="collapse" keep-with-next="always">
<fo:table-column column-number="1"/>
<fo:table-column column-width="6cm" column-number="2"/>
<fo:table-body>
<fo:table-row>
<!-- == THIRD-PARTY ADDRESS == -->
<fo:table-cell>
<fo:block>
<fo:inline>
<xsl:value-of select="/hash/party_name"/>
</fo:inline>
</fo:block>
<!-- CUSTOM MULTI LINE ADDRESS ADDING EXTRA LINE - WHY? -->
<fo:block>
<xsl:value-of select = "/hash/text/Gatwick_Office"/>
</fo:block>
<fo:block white-space-collapse="true" linefeed-treatment="preserve">
<fo:inline>
<xsl:value-of select = "/hash/text/Gatwick_Address"/>
</fo:inline>
</fo:block>
</fo:table-cell>
Однако выходные данные отображаются в формате pdf:
Test Company
RH6 0LG
Head Office
<fo:block white-space-collapse="false" linefeed-treatment="preserve">
Gatwick
West Sussex
RH6 0LG
</fo:block>
и добавляются строки между головным офисом и адрес (а также добавление кода!
Что я делаю не так?