|
Rank: Newbie
Joined: 8/8/2018 Posts: 2
|
Hello, This problem occur since I moved from Altova 2017 to 2019.
When I generate PDF file I have missing empty line-breaks which I defined on designer. This is only issued for PDF, other formats are generated correctly.
I checked XSLT-FO transform and I was searching part of code responsible for line-breaks. Then I noticed that definition for <fo:block/> is missing:
currently (not working): Code:xsl:template match="altova:line-break" mode="second-step"> <xsl:variable name="name-following-sibling" select="name(following-sibling::*[1])"/> <xsl:variable name="name-preceding-sibling" select="name(preceding-sibling::*[1])"/> <xsl:if test="($name-following-sibling and $name-following-sibling != ''fo:table'' and $name-following-sibling != ''altova:line-break'' and $name-preceding-sibling != ''altova:basic-link-container'') or $name-preceding-sibling = ''altova:line-break''"> <fo:block/> </xsl:if> </xsl:template>
previously (working): Code:<xsl:template match="altova:line-break" mode="second-step"> <xsl:variable name="name-following-sibling" select="name(following-sibling::*[1])"/> <xsl:variable name="name-preceding-sibling" select="name(preceding-sibling::*[1])"/> <xsl:if test="($name-following-sibling and $name-following-sibling != ''fo:table'' and $name-following-sibling != ''altova:line-break'' and $name-preceding-sibling != ''altova:basic-link-container'') or $name-preceding-sibling = ''altova:line-break''"> <fo:block> <xsl:if test="($name-preceding-sibling != ''altova:inline-container-substitute'' and $name-preceding-sibling != ''fo:inline'' and $name-preceding-sibling != ''fo:basic-link'' and $name-preceding-sibling != ''altova:bookmark'' and $name-preceding-sibling != ''altova:hyperlink'') or ($name-following-sibling != ''altova:inline-container-substitute'' and $name-following-sibling != ''fo:inline'' and $name-following-sibling != ''fo:basic-link'' and $name-following-sibling != ''altova:bookmark'' and $name-following-sibling != ''altova:hyperlink'')"> <fo:leader leader-pattern="space"/> </xsl:if> </fo:block> </xsl:if> </xsl:template>
I am not sure if it is Altova 2019 bug or it could be configured somewhere. I would be grateful if anyone could help me with this.
|
|
Rank: Newbie
Joined: 10/28/2002 Posts: 1,283 Location: AT
|
Hi,
please contact support and provide them with your sps file, your working xml file and xml schema(s).
|
|
Rank: Newbie
Joined: 4/25/2019 Posts: 1 Location: Poland
|
Hello, did you get any information about this problem? I have the same issue after upgrade StyleVision from 2018r2 sp1 to 2019r3.
|
|
guest |