Categories > OpenTBS with DOCX >

xml goed crazy

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: noiq
Date: 2012-06-15
Time: 15:11

xml goed crazy

I'm getting nuts here....

Word template:
Naam + voorletters:    [pk.Name], [pk.First]
Roepnaam:        [pk.AanvragerRoepnaam]
Adres:            [pk.adres]

result in document.xml
  <w:rPr>
     <w:rFonts w:ascii="Arial" w:eastAsia="Times New Roman" w:hAnsi="Arial" w:cs="Arial"/>
     <w:sz w:val="20"/>
     <w:szCs w:val="20"/>
    </w:rPr>
    <w:tab/>
    <w:t>
----->[
    </w:t>
   </w:r>
   <w:r>
    <w:rPr>
     <w:rFonts w:ascii="Arial" w:eastAsia="Times New Roman" w:hAnsi="Arial" w:cs="Arial"/>
     <w:sz w:val="20"/>
     <w:szCs w:val="20"/>
    </w:rPr>
    <w:t>
----->pk.AanvragerRoepnaam]
    </w:t>
   </w:r>
  </w:p>
Does anyone have a clue on why the variabele name [pk.roepnaam] is rendered as above? In stread as a result like Mike?
The result in the actual word file is (fictive data):
Naam + voorletters:    Mylastname, F
Roepnaam:        [pk.AanvragerRoepnaam]
Adres:            Downingstreet 1
By: Skrol29
Date: 2012-06-15
Time: 22:38

Re: xml goed crazy

Hi Noiq,

This problem typically happens when you past a piece of text inside a TBS field.
The consequence is that Ms Word also copy the formatting XML elements.

The solution is to cut the entire BS tag, and then past it with the option "text without formating".
Your TBS tag should not be cut anymore.


By: noiq
Date: 2012-06-16
Time: 23:37

Re: xml goed crazy

Wow! Thank you Skrol29, you saved my day!