SDL Trados Studio
SDL Trados GroupShare
SDL Trados Business Manager
SDL Trados Live
SDL MultiTerm
SDL Passolo
SDL Speech to Text
SDL Managed Translation - Enterprise
SDL MultiTrans
SDL TMS
SDL WorldServer
Translation Management Connectors
SDL LiveContent S1000D
SDL Contenta S1000D
SDL XPP
SDL Tridion Docs
SDL Tridion Sites
SDL Content Assistant
SDL Machine Translation Cloud
SDL Machine Translation Connectors
SDL Machine Translation Edge
Language Developers
Tridion Developers
Tridion Docs Developers
Xopus Developers
Community Help
SDL User Experience
Language Products - GCS Internal Community
SDL Community Internal Group
SDL Access Customer Portal
SDL Professional Services
SDL Training & Certification
Style Guides
Language Technology Partner Group
SDL Academic Partners
SDL Enterprise Technology Partners
XyUser Group
ETUG (European Trados User Group) Public Information
Machine Translation User Group
Nordic SDL Tridion Docs User Group
SDL Tridion UK Meetup
SDL Tridion User Group New England
SDL Tridion West Coast User Group
SDL WorldServer User Group
Tridion Docs Europe & APAC User Group
Tridion User Group Benelux
Tridion User Group Ohio Valley
SDL MultiTerm Ideas
SDL Passolo Ideas
SDL Trados GroupShare Ideas
SDL Trados Studio Ideas
SDL Machine Translation Cloud Ideas
SDL Machine Translation Edge Ideas
SDL Language Cloud TMS Ideas
SDL Language Cloud Terminology Ideas
SDL Language Cloud Online Editor Ideas
SDL Managed Translation - Enterprise Ideas
SDL TMS Ideas
SDL WorldServer Ideas
SDL Tridion Docs Ideas
SDL Tridion Sites Ideas
SDL LiveContent S1000D Ideas
SDL XPP Ideas
Events & Webinars
To SDL Documentation
To SDL Support
What's New in SDL
Detecting language please wait for.......
I have a xml file with this structure:
<?xml version='1.0' encoding='UTF-8'?><objektliste xmlns=""> <uebersetzungen key="2234506" attribute="7505"> <thumbnail>2234506.jpg</thumbnail> <text sprache="1043">Sample text.</text> <text sprache="2057">Sample text.</text> <text sprache="1033">Sample text.</text> <text sprache="1036">Sample text.</text> <text sprache="1031">Sample text.</text> <text sprache="1040">Sample text.</text> <text sprache="1034">Sample text.</text> <text sprache="1053">Sample text.</text> </uebersetzungen></objektliste>
Now I just need to translate the lines with text sprache="1043"
I tried both //* non translatabe and //text/[@sprache"=1043"] always translatable or //* not translatable and //uebersetzungen/text/[@sprache="1043"], but neither works
Has anyone here an idea, what shall I put in Xpath to get it working?
That should be it - however I previously test bot with and without slash to no avail. Whatever happened, the problem is solved.
The rules order is important, i.e. the //* nontranslatable rule should be always the last one in the list.Then it should work with either of your "1043"rules.
The thin is, that it is so:
Now, when I go to preview, I see this:
And this is what bothers me... The regex \\text\[@sprache="1043"] is correct, as I can visualize this in a Xpath visualizer and get only text with sprache="1043" shown. But Studio seems to completely ignore this...
Well, this is weird... I have now edited the file type, removed //*, added a position //text[@sprache="1043"] for each language, than defined all "sprache" but 1043 as non translatable and that worked.So I added //* as non translatable and disabled all but 1043 - it worked again. So now I have this:
And this is what was needed - depending on the language the proper element can be enabled or disabled.
Thank you for your time looking into this issue.
Yep, there was an extra slash after "text" in your original XPath, that made the XPath incorrect.
It should be //text[@sprache="1043"].