if you are a human please do not click here
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
Username :
Password :
Home
Help
Calendar
Register
Login
XMetaL Community Forums
»
General
»
DITA and XMetaL Discussion
»
XMetal is inserting spaces when <cite> element surrounds <ph> element
Pages:
1
« previous
next »
Print
Author
Topic: XMetal is inserting spaces when <cite> element surrounds <ph> element (Read 233 times)
ScottG
Member
Posts: 5
XMetal is inserting spaces when <cite> element surrounds <ph> element
«
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: 1548
Re: XMetal is inserting spaces when <cite> element surrounds <ph> element
«
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
Pages:
1
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General
-----------------------------
=> Forum Information
=> General XMetaL Discussion
=> DITA and XMetaL Discussion
=> XMetaL Tips and Tricks
=> XMetaL Announcements and Events
Loading...