[Framers] Updating Entity Declarations in XML Output and Working with CGM Graphics (cuc tu)

Lynne A. Price lprice at txstruct.com
Thu Aug 22 16:47:07 PDT 2019


C2,
    There's a RemoveExtraWhiteSpacesOnXMLImport setting in maker.ini.  
It is initially set to On. When it is On, when FM reads an XML document, 
it condenses a sequence of spaces and newlines into a single space. It 
assumes that an element that is declared to be EMPTY in XML does not 
interrupt such a sequence. That assumption makes sense for something 
like a marker element, so that if the XML contains a marker element on a 
separate line, for example, it does not come into FM with a space on 
either side of the marker. System variable elements and cross-reference 
elements have similar declarations in XML. However, since they usually 
produce visible content in the FM document, I think they should be 
treated like text rather than empty elements during import.

     If your XML documents do not have sequences of white space that you 
want to condense to a single space, you can set 
RemoveExtraWhiteSpacesOnXMLImport to Off. Alternatively, you can use 
XSLT to change the space after a cross-reference to something that will 
import as a space. I haven't tested it, but I believe the character 
reference   will do what you want.

     --Lynne


On 8/22/2019 8:44 AM, Lynne A. Price wrote:
> C2,
>    There's a maker.ini setting that will help with the spaces, but may 
> affect other spaces. I'll look up the details later today.
>     --Lynne
>
>
> On 8/22/2019 7:13 AM, cuc tu wrote:
>> Another small issue I'm having is with xref elements and following 
>> text. After the xref, the space gets dropped but I think that just 
>> happens when Frame opens the XML file. [<para><xref figid = 
>> "o00090_fig_2_3"/> shows a typical trigger timing diagram.</para>] 


-- 
Lynne A. Price
Text Structure Consulting, Inc.
Specializing in structured FrameMaker consulting, application development, and training
lprice at txstruct.com            http://www.txstruct.com
voice/fax: (510) 583-1505      cell phone: (510) 421-2284



More information about the Framers mailing list