Rank: Member
Joined: 3/10/2016 Posts: 10 Location: Germany
|
Dear experts,
I try to map some rawtext inluding Line feed and carriage return in a new xml. My Problem is, that I don't have this values in the XML, it's only vissible with hidden symbols. Example:
<RawText>Test Kaufgesuch EFH Zu vermieten, möglichst Nähe Aalen, mit großem Garten (ca 600 m²), Doppelgarage, gute Lage, evtl. Carport bis 1000,- Euro Miete. Ich freue mich auf Ihren Anruf unter Tel. (12345) 67890. </RawText>
In the result xml. the symbol is:
<objekt_text lang="Test Kaufgesuch EFH
Zu vermieten, möglichst Nähe alen, mit großem Garten (ca 600 m²), Doppelgarage, gute Lage, evtl. Carport bis 1000,- Euro Miete.
Ich freue mich auf Ihren nruf unter Tel. (12345) 67890.
"/>
So, I try to translate the 
 symbol in "".
The problem is, that Map Force translate this string internal:
Quote:<xsl:value-of select="translate(string(XML/Production/Ad/RawText), '&#xA;', '')"/>
Then the translation is not working, of course.
Do anybody a solution for this issue, how can I erase the line feed / return?
Thanks a lot for tip :-)
Kind regards Oli-87 oli-87 attached the following image(s):
|
Rank: Advanced Member
Joined: 6/16/2006 Posts: 486 Location: AT
|
You might want to use normalize-space function instead of translate.
|
Rank: Member
Joined: 3/10/2016 Posts: 10 Location: Germany
|
that wrote:You might want to use normalize-space function instead of translate.
Hello "that",
thanks very much. After I saw your answer, the question is very silly. :-) But I didn't find this function.
Problem solved.
Kind regards Oli-87
|