cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - New to the community? Learn how to post a question and get help from PTC and industry experts! X

Arbortext AAD, dmRef ouput missing spaces in PDF output

GregoryMackenzi
1-Newbie

Arbortext AAD, dmRef ouput missing spaces in PDF output

I noticed that in the AAD S1000D PDF output (Editor 5.3, CSDB 4.3 M060) the dmRef outputs a data module code and there is a missing space between the end of the DMC and the <techname> and also between the <techname> and infoName, so you get something like "STUF-A-34-52-01-00A-300A-DWidget Part No. 007Examination tests and checks" when it should be "STUF-A-34-52-01-00A-300A-D Widget Part No. 007 Examination tests and checks ".

DMC: STUF-A-34-52-01-00A-300A-D

techName: Widget Part No. 007

infoName: Examination tests and checks

I noticed that the PDF file does not have a dash between the techName and infoName elements and when I search for infoName for example in the stylesheets I cannot find an example that doesn't have a dash, for example the following code from foRevSegDatamodule.xsl inserts a dash between the techname and infoname elements:

       &#160;<xsl:value-of select="techname"/>&#160;-&#160;<xsl:value-of select="infoname"/>

Also, I can't help but notice that the stylesheet case does not match the element names so we have "techname" and "infoname" above instead of the camel case.

I can't find a rule without a dash, since there is no rule which matches the markup in this context, therefore the text within the <dmRefAddressItems> markup is rendered as it is, which turns out to be, no spaces. This is the same problem I think as my previous issue with superscript, the markup is there but there was no rule to match, so the character data was simply output as it was.

Since it needs a template match, I put a new xsl:template match at the end of foPara.xsl, and I changed the element names to camel case, "dmTitle", "techName", "infoName". I also modified some of the non breaking spaces "&#160;" to plain spaces "&#32;" as this is used in the context of a paragraph. Here is the code:

    <!-- ===================================================================== -->

    <!--L3 Modification to include a template match for techName and infoName -->

    <xsl:template match="dmTitle">

            &#160;<xsl:value-of select="techName"/>&#32;-&#32;<xsl:value-of select="infoName"/>

    </xsl:template>

    <!--End L3 Modification-->

    <!-- ===================================================================== --> </xsl:stylesheet><!--this is the last tag of the stylesheet-->

It works.

0 REPLIES 0
Top Tags