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 Approved Trainers
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.......
Dear Community,
after successfully creating 385 cost models, we have now been asked if there is anyway to extract these data for use in Excel or Access. I know I can export the cost models as .tml files, which someone with far more XML and Excel skill than I MIGHT be able to do something with. What about exporting a portion of the database with these data so they can be viewed in Access?
As always, thanks in advance!
Dave,
I used the TML file and converted all the cost entries by target locale into a single row of comma separated values
The TML has a block of data loke the following for each language:
<costModelLocale…
<costModelLocale> <localeRef>Arabic (Saudi Arabia)</localeRef> <ice>0.0</ice> <perfect>0.0</perfect> <repetition>0.04</repetition> <rangeWordPrices> <price>0.225</price> <price>0.135</price> <price>0.09</price> <price>0.09</price> </rangeWordPrices> </costModelLocale>
Using notepad ++ and a series of regular expression replacements to create the following result:
Arabic (Saudi Arabia),0.0,0.0,0.04,0.225,0.135,0.09,0.09
The set of replacement operations using the regular expression find and replace in notepad++ are:
\r\s*<price> <-- <price>\r\s* <-- \r\s*<repetition> <-- <repetition>\r\s*<perfect> <-- <perfect>\r\s*<ice> <-- <ice></[^>]*?> <-- no value to remove such entriesdelete <costModelLocale>\s*<localeRef> <-- no value to remove such entries <-- no value to remove such entries
<[^>]*?> <-- ,
The line <-- no value to remove such entries should be <rangeWordPrices> <-- no value to remove such entries
The line \r\s* <-- should be replaced with \r\s*<rangeWordPrices> <-- <rangeWordPrices>
Thank you so much for this Larry! I'll pass that on here and there will be much rejoicing!