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

Community Tip - When posting, your subject should be specific and summarize your question. Here are some additional tips on asking a great question. X

import question 2: lots of spaces around a LINK basic mapping element

naglists
1-Newbie

import question 2: lots of spaces around a LINK basic mapping element

I am using Import to process FrameMaker MIF files. The cross-references are
preprocessed into the ppXML as <link> elements. My final XML output has 22
spaces before and after the output element (<fm_link>) and 26 just inside
the opening of fm_link.

There are no such spaces in the source or the ppXML.

The full set of ppXML tags associated with one instance looks something like
this:
<paragraph style="bu" ...="><link ...="><specialtext style="bold"&lt;br"/>...>sometext</specialtext></link>moretext</paragraph>

I have omitted most of the attribute values for clarity. My MapObjects for
bu and SPECIALTEXT/@emphasis-bold are unremarkable and don't produce any
unexpected behavior anywhere else.

Has anyone seen this behavior before?

--
Paul Nagai
4 REPLIES 4

It's like talking to myself.

MapTemplate Properties > Configure Output Encoding, Namespaces, and
Validation Options > More MapObject Options > Output Formatting tab. Clear
the checkbox for Indent XML. (Turn off pretty printing.)

Don't feel bad, I've done this a lot (typed out a question only to
realize the answer when I read it back).



I've actually typed emails to adepters I had never intended to send,
just to see if I could explain it to myself in a way that would make the
solution stand out.



It's the weirdest thing, but it works surprisingly well...



-Jason


Yes indeed, this is one of the best debugging methods. Explain your code
to someone else, and you often discover the source of the problem as a
result of organizing your thoughts for the explanation.



--Clay


It has to do with cognition. We use a different part of the brain explaining something vs. thinking through it in the problem space. I read about research where subjects were actually able to solve complex problems better when they explained it verbally to a teddy bear sitting on their desk.

I can't find a reference to it; maybe have to check in with my sasquatch contacts.
Top Tags