Skip to main content
1-Visitor
March 26, 2010
Question

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

  • March 26, 2010
  • 4 replies
  • 1151 views
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

    naglists1-VisitorAuthor
    1-Visitor
    March 26, 2010
    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.)

    March 26, 2010
    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


    18-Opal
    March 26, 2010
    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


    1-Visitor
    March 26, 2010
    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.