Embedded content HTML in XML
Thread poster: Gerald Dennett

Gerald Dennett  Identity Verified
United Kingdom
Local time: 18:05
German to English
+ ...
May 18, 2010

The KB article for the latest (17 May) update to SDL Trados 2009 states:
"Embedded content in XML files (such as CDATA sections) can now be processed. "

Can anyone please tell me how this is supposed to work. I have followed the instructions in help to the letter and am having no luck.
I have an XML file with elements containing translatable text. The translatable text is in HTML format and so I wish to convert the HTML tags to Trados tags so that they are not messed abo
... See more
The KB article for the latest (17 May) update to SDL Trados 2009 states:
"Embedded content in XML files (such as CDATA sections) can now be processed. "

Can anyone please tell me how this is supposed to work. I have followed the instructions in help to the letter and am having no luck.
I have an XML file with elements containing translatable text. The translatable text is in HTML format and so I wish to convert the HTML tags to Trados tags so that they are not messed about with in translation.
In theory, I can identify the element that contains text and add the HTML tags as RegExpressions so that they are converted into tags, or so Help tells me.

I am unable to succeed.
Has anyone managed to do this?
I'll be very grateful for any help
Gerald
Collapse


 

Gerald Dennett  Identity Verified
United Kingdom
Local time: 18:05
German to English
+ ...
TOPIC STARTER
Solved May 19, 2010

A prompt response from SDL has helped me with my understanding of XML and the
Regular Expressions syntax used in Studio 2009.
I have a working solution and am most grateful. SDL is updating its documentation.
Gerald


 

Remy Blaettler
Local time: 19:05
German to English
+ ...
Same issue? Documentation correct? Oct 28, 2011

Hey Gerald
Where you ever able to get the example in the documentation with sample2.xml to work? I followed all the steps, but it's not working at all for me.

I have HTML in an XML attribute and that is not working either. I can write the XPath, but all the HMTL tags are still encoded in Trados.

Cheers

Remy


 

Stanislav Pokorny  Identity Verified
Czech Republic
Local time: 19:05
English to Czech
+ ...
Catching HTML Oct 28, 2011

Hi Remy,
Paul once helped me with this. In the "Filetypes" tree, expand the filetype in question, go to the "Embedded Content" entry and add the following RegEx as a placeholder:
Code:
</?[a-z][a-z0-9]*[^<>]*>



This should catch almost all embedded HTML tags a
... See more
Hi Remy,
Paul once helped me with this. In the "Filetypes" tree, expand the filetype in question, go to the "Embedded Content" entry and add the following RegEx as a placeholder:
Code:
</?[a-z][a-z0-9]*[^<>]*>



This should catch almost all embedded HTML tags and diplay them as placeholders.

[Upraveno: 2011-10-28 18:14 GMT]

[Upraveno: 2011-10-28 18:15 GMT]
Collapse


 

Remy Blaettler
Local time: 19:05
German to English
+ ...
Example? Oct 31, 2011

Thanks for the hint. They actually have that in the online help, but it still does not do the job with the example.
The problem starts with the Parser rule: //*[@translate='yes']

This is the XML for the example from the online help:
http://producthelp.sdl.com/SDL%20Trados%20Studio/client_en/sample2.xml

I added another section wit
... See more
Thanks for the hint. They actually have that in the online help, but it still does not do the job with the example.
The problem starts with the Parser rule: //*[@translate='yes']

This is the XML for the example from the online help:
http://producthelp.sdl.com/SDL%20Trados%20Studio/client_en/sample2.xml

I added another section with String translate="no" and both are included. Does anyone have a working .sdlfiletype file for any of these examples? Or any pointers to why this is not working for me?
Collapse


 

Gerald Dennett  Identity Verified
United Kingdom
Local time: 18:05
German to English
+ ...
TOPIC STARTER
Embedded content HTML in XML Oct 31, 2011

Hi Remy
Paul at SDL helped me out of my difficulties. To be honest, I have not had to deal with it since (I was helping someone else out) and cannot remember a thing!
Sorry I cannot be more helpful
Gerald


 

Remy Blaettler
Local time: 19:05
German to English
+ ...
Working with SDL now Nov 1, 2011

Hey Stanislav and Gerald
Thanks for the responses. Got a mail from Paul and will update the Forum if we find the solution.

Cheers

Remy


 


To report site rules violations or get help, contact a site moderator:


You can also contact site staff by submitting a support request »

Embedded content HTML in XML

Advanced search







WordFinder Unlimited
For clarity and excellence

WordFinder is the leading dictionary service that gives you the words you want anywhere, anytime. Access 260+ dictionaries from the world's leading dictionary publishers in virtually any device. Find the right word anywhere, anytime - online or offline.

More info »
Déjà Vu X3
Try it, Love it

Find out why Déjà Vu is today the most flexible, customizable and user-friendly tool on the market. See the brand new features in action: *Completely redesigned user interface *Live Preview *Inline spell checking *Inline

More info »



Forums
  • All of ProZ.com
  • Term search
  • Jobs
  • Forums
  • Multiple search