DITA and XMetaL Discussion
XMetaL Community Forum › DITA and XMetaL Discussion › XMetal is inserting spaces when <cite> element surrounds <ph> element
ScottG October 19, 2011 at 3:31 pm
XMetal is inserting spaces when <cite> element surrounds <ph> elementOctober 19, 2011 at 3:31 pmParticipants 3Replies 4Last Activity 11 years, 5 months ago
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:
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:
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
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?Derek Read October 19, 2011 at 4:56 pm
Reply to: XMetal is inserting spaces when <cite> element surrounds <ph> elementOctober 19, 2011 at 4:56 pm
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.edwardwoodward July 7, 2014 at 5:30 am
Reply to: XMetal is inserting spaces when <cite> element surrounds <ph> elementJuly 7, 2014 at 5:30 am
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.Derek Read July 7, 2014 at 11:27 pm
Reply to: XMetal is inserting spaces when <cite> element surrounds <ph> elementJuly 7, 2014 at 11:27 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.edwardwoodward July 8, 2014 at 12:11 am
Reply to: XMetal is inserting spaces when <cite> element surrounds <ph> elementJuly 8, 2014 at 12:11 am
Thanks for the confirmation.
- You must be logged in to reply to this topic.