Pages: 1
Print
Author Topic: Extra Space in Conditional Conref  (Read 1373 times)
bzebian
Member

Posts: 27


« on: November 05, 2009, 10:13:25 AM »

I've created a conref with two conditional product values. One is for product="foundation", the other is for "product="platform". The correct conref value outputs when I publish and select the appropriate condition text in the XMetaL pubs dialog, but there is always an extra space after the conref in the PDF3 output. This is with XMetaL 5.1.1.017.

Here is the conref code.  I dont see anythign that may cause the extra space. Any idea what is causing this & I can remedy? Thanks.

<?xml version="1.0"?>
<!DOCTYPE ditacomponent PUBLIC "-//XMETAL//DTD DITA Component//EN" "ditacomponent.dtd">
<ditacomponent class="- topic/topic ditacomponent/ditacomponent " domains="(topic ui-d) (topic hi-d) (topic pr-d) (topic sw-d) (topic ut-d)" xmlns:ditaarch="http://dita.oasis-open.org/architecture/2005/" id="T29116"><description class="- topic/title ditacomponent/description ">Product name</description><compbody class="- topic/body ditacomponent/compbody "><reusable-content class="- topic/required-cleanup ditacomponent/reusable-component "><ph id="C1" class="- topic/ph "><ph product="foundation">Payment Transaction Management</ph><ph product="platform">Platform</ph></ph></reusable-content></compbody></ditacomponent>

Logged
Derek Read
Program Manager (XMetaL)
Administrator
Member

Posts: 1548



WWW
« Reply #1 on: November 05, 2009, 07:54:06 PM »

I've tried producing output in various formats and don't see any extra space. I've tested with 5.1.1.017 using "XMetaL Enhanced PDF via RenderX" and "Multiple HTML" and get the same results as far as I can tell.

When I don't specify any conditional text settings during output the content of both <ph> elements is run together with no spaces between them, or before or after them, as expected (as that is how they appear in your ditacomponent file. However, that's not what you want.

When I specify either to include product="foundation" or product="platform" content only, I get the content for one of the <ph> elements and no extra spaces are entered before, in the middle or after the text.

I created the file containing the <ph> elements using cut and paste from this forum directly into a blank file. That may be contributing to the issue and I may not be testing with content on disk that is the same as what you have as the forum may have removed some white-spaces or something. Perhaps you can include more of your files here or submit a support case that includes them along with the PDF file you are getting.
Logged
bzebian
Member

Posts: 27


« Reply #2 on: November 09, 2009, 01:51:36 PM »

I'm not seeing it in multiple HTML output, but I see it in all PDF types (default FO, Book with Renderx, Enhanced RenderX, and our own customized Enhanced RenderX).  I'll open a case so you can look at the files. Thanks.
Logged
bzebian
Member

Posts: 27


« Reply #3 on: May 03, 2010, 03:21:21 PM »

Just to close this out, I found a fix for this in the Yahoo DITA Users group. Changed <xsl:output indent="yes"/> to  <xsl:output indent="no"/> in C:\Program Files\Common Files\XMetaL Shared\DITA_OT\demo\xmfo\xsl\common\topicmerge.xsl.  It removed the extra space in PDF issue. I'm still testing to see any other impacts, but have found none so far.
Logged
Pages: 1
Print
Jump to: