Pages: 1
Print
Author Topic: XMetal is inserting spaces when <cite> element surrounds <ph> element  (Read 3763 times)
ScottG
Member

Posts: 5


« on: October 19, 2011, 09:31:06 AM »

I am using XMetaL(R) Author Enterprise 5.5 with the SDL Trisoft plug-in on a Windows 7 machine.

Here's my situation:
1. I enter the following code in my XML file:
<cite><ph varref="ConfigGuide">Configuration Guide</ph></cite>

2. I  check in the XML file using the SDL Trisoft plugin.

3. I check out the XML file. The code formatting has changed to:
      <cite>
        <ph varref="ConfigGuide">Configuration Guide</ph>
      </cite>.
This initially doesn't seem like a problem, since it appears XMetaL is just trying to format the XML to make it more readable. However, XMetaL is also inserting an extra space on either side of the <ph> element. When I publish the document, there are extra spaces around 'Configuration Guide'.

My initial feeling is that this is a bug in the way XMetaL is automatically formatting the XML. Anyone else run into this or know of a solution?
Logged
Derek Read
Program Manager (XMetaL)
Administrator
Member

Posts: 2621



WWW
« Reply #1 on: October 19, 2011, 10:56:11 AM »

If it is not possible to alter your publishing system to deal with this white-space (that would be the ideal) it is possible to turn the pretty printing applied by XMetaL Author Enterprise for DITA documents off by running a macro (listed in the Macros toolbar) called "DITA Configuration: Turn OFF Pretty-Printing".

Disabling pretty printing will not "fix up" documents that have already been saved however. You will need to deal with such files individually, or perhaps via some batch process.

If you need to have pretty printing turned on (so you can read the XML source more easily) but alter the behaviour for particular elements it is possible to configure the design of the pretty printing settings on a per-element basis. This is something our services team can help with if it is a requirement for you. The product includes a .ctm file for each DTD and it is file that controls various editing behaviours including pretty printing settings.
Logged
edwardwoodward
Member

Posts: 24


« Reply #2 on: July 06, 2014, 11:30:51 PM »

Hello

Using XMetaL 8 SP1, Japanese.

These extra spaces are causing a problem for us, so we want to turn off pretty printing, but when we click "Run" (not sure of the English button name), we get a pretty drastic warning message telling of potential dire consequences. Is this a standard message that also pops up in English versions, or is there something else we should worry about?

Cheers.

Logged
Derek Read
Program Manager (XMetaL)
Administrator
Member

Posts: 2621



WWW
« Reply #3 on: July 07, 2014, 05:27:31 PM »

The files that need to be changed are inside C:\Program Files (where XMetaL Author Enterprise is installed) and on newer versions of Windows that location is restricted to being changed only by users with admin rights (similar to installing software). That is all the message is telling you. It is the same on the English edition.
Logged
edwardwoodward
Member

Posts: 24


« Reply #4 on: July 07, 2014, 06:11:16 PM »

Thanks for the confirmation.
Logged
Pages: 1
Print
Jump to: