{"ygPerms":{"resourceCapabilityList":[{"resourceType":"GROUP","capabilities":[{"name":"UPDATE"},{"name":"READ"},{"name":"WELCOME_MSG"},{"name":"PENDING_COUNT"},{"name":"ACTIVITY_LOGS"}]},{"resourceType":"PHOTO","capabilities":[{"name":"READ"},{"name":"READ"},{"name":"UPLOAD"},{"name":"UPDATE"},{"name":"DELETE"},{"name":"COPY"},{"name":"MOVE"},{"name":"APPROVE"},{"name":"UPLOADTEMP"},{"name":"GROUPCOVER"}]},{"resourceType":"FILE","capabilities":[{"name":"READ"},{"name":"CREATE"},{"name":"UPDATE"},{"name":"DELETE"},{"name":"AUTO_SEND"}]},{"resourceType":"MEMBER","capabilities":[{"name":"READ"},{"name":"READ"},{"name":"EDIT_MODERATOR"},{"name":"DELETE"},{"name":"CREATE"},{"name":"UPDATE"},{"name":"BAN"}]},{"resourceType":"LINK","capabilities":[{"name":"READ"},{"name":"CREATE"},{"name":"UPDATE"},{"name":"DELETE"},{"name":"MOVE_LINK"}]},{"resourceType":"CALENDAR","capabilities":[{"name":"READ"}]},{"resourceType":"DATABASE","capabilities":[{"name":"READ"},{"name":"READ_DATA"},{"name":"CREATE"}]},{"resourceType":"POLL","capabilities":[{"name":"READ"},{"name":"VOTE"},{"name":"UPDATE"},{"name":"CREATE"},{"name":"DELETE"},{"name":"CLOSE"}]},{"resourceType":"MESSAGE","capabilities":[{"name":"CREATE"},{"name":"READ"},{"name":"DELETE"}]},{"resourceType":"PENDING_MESSAGE","capabilities":[{"name":"READ"},{"name":"UPDATE"},{"name":"DELETE"}]},{"resourceType":"ATTACHMENTS","capabilities":[{"name":"READ"},{"name":"DELETE"}]},{"resourceType":"PHOTOMATIC_ALBUMS","capabilities":[{"name":"READ"},{"name":"UPLOAD"}]},{"resourceType":"MEMBERSHIP_TYPE","capabilities":[{"name":"READ"},{"name":"CREATE"},{"name":"DELETE"},{"name":"UPDATE"}]},{"resourceType":"POST","capabilities":[{"name":"READ"},{"name":"CREATE"},{"name":"DELETE"},{"name":"UPDATE"}]},{"resourceType":"PIN","capabilities":[{"name":"READ"},{"name":"CREATE"},{"name":"DELETE"},{"name":"UPDATE"}]}],"modStatus":"MODERATOR","subStatus":"NORMAL","groupUrl":"groups.yahoo.com","intlCode":"us"},"comscore":"pageview_candidate","ygData":{"userId":401828635,"authorName":"Jean-Christophe Helary","from":"Jean-Christophe Helary &lt;jean.christophe.helary@gmail.com&gt;","profile":"jc_helary","replyTo":"LIST","senderId":"gbC-Z9YfRb1Z5dG-Vyzx7A9jxXZNMN4v37yBoYN4RCHvmMTUpXDPoU3RqW1nJkWZa8GbYq2OpAYqLAHXYUoUF1sBLsl6SDk0333uM_KQH0UMv62kFgTW0dlE_e2NUWCX","spamInfo":{"isSpam":false,"reason":"12"},"subject":"XSLT for TTX-&gt; (super simple) HTML","postDate":"1255621770","msgId":15746,"canDelete":true,"contentTrasformed":false,"systemMessage":false,"headers":{"messageIdInHeader":"PDI3RjFGQ0IwLTREQTgtNDg3Ri1BRDY5LUM5RTlFQjdCMEVFMkBnbWFpbC5jb20+"},"prevInTopic":0,"nextInTopic":0,"prevInTime":15745,"nextInTime":15747,"topicId":15746,"numMessagesInTopic":1,"msgSnippet":"I am just starting to learn XSLT so what I propose here is really trivial, but I still want to share... :) One of my current job involves proofreading TTX","rawEmail":"Return-Path: &lt;jean.christophe.helary@gmail.com&gt;\r\nX-Sender: jean.christophe.helary@gmail.com\r\nX-Apparently-To: OmegaT@yahoogroups.com\r\nX-Received: (qmail 2793 invoked from network); 15 Oct 2009 15:49:38 -0000\r\nX-Received: from unknown (98.137.34.45)\n  by m2.grp.sp2.yahoo.com with QMQP; 15 Oct 2009 15:49:38 -0000\r\nX-Received: from unknown (HELO fg-out-1718.google.com) (72.14.220.155)\n  by mta2.grp.sp2.yahoo.com with SMTP; 15 Oct 2009 15:49:38 -0000\r\nX-Received: by fg-out-1718.google.com with SMTP id 22so1642917fge.6\n        for &lt;OmegaT@yahoogroups.com&gt;; Thu, 15 Oct 2009 08:49:37 -0700 (PDT)\r\nX-Received: by 10.86.230.30 with SMTP id c30mr330408fgh.68.1255621777537;\n        Thu, 15 Oct 2009 08:49:37 -0700 (PDT)\r\nReturn-Path: &lt;jean.christophe.helary@gmail.com&gt;\r\nX-Received: from ?192.168.24.51? (pl807.nas982.takamatsu.nttpc.ne.jp [124.154.43.39])\n        by mx.google.com with ESMTPS id 4sm2537989fgg.28.2009.10.15.08.49.34\n        (version=TLSv1/SSLv3 cipher=RC4-MD5);\n        Thu, 15 Oct 2009 08:49:36 -0700 (PDT)\r\nContent-Type: text/plain; charset=us-ascii; format=flowed; delsp=yes\r\nMessage-Id: &lt;27F1FCB0-4DA8-487F-AD69-C9E9EB7B0EE2@gmail.com&gt;\r\nDate: Fri, 16 Oct 2009 00:49:30 +0900\r\nTo: OmegaT@yahoogroups.com\r\nContent-Transfer-Encoding: 7bit\r\nMime-Version: 1.0 (Apple Message framework v1076)\r\nX-Mailer: Apple Mail (2.1076)\r\nX-Originating-IP: 72.14.220.155\r\nX-eGroups-Msg-Info: 1:12:0:0:0\r\nFrom: Jean-Christophe Helary &lt;jean.christophe.helary@gmail.com&gt;\r\nSubject: XSLT for TTX-&gt; (super simple) HTML\r\nX-Yahoo-Group-Post: member; u=401828635; y=kNmlj7tnuYleNzIQxfop-xlw8ISmydzgFGFoyJv8BnC4Ga4rxQ\r\nX-Yahoo-Profile: jc_helary\r\n\r\nI am just starting to learn XSLT so what I propose here is really  \ntrivial, but I still want to share... :)\n\nOne of my current job involves proofreading TTX files and sending my  \nmodifications back to the translator.\n\nWhat I did is create a small XSLT transformation to change the TTX  \ncontents into something I could easily read (HTML), export that to  \nODT, add track changes and deliver my suggestions/corrections.\n\nThe XSLT is the following:\n\n======================================\n&lt;?xml version=&quot;1.0&quot;?&gt;\n\n&lt;xsl:stylesheet version=&quot;1.0&quot;\n\t\txmlns:xsl=&quot;http://www.w3.org/1999/XSL/Transform&quot;&gt;\n\n   &lt;xsl:template match=&quot;/&quot;&gt;\n     &lt;html&gt;\n       &lt;head&gt;\n\t&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=utf-8&quot;/&gt;\n       &lt;/head&gt;\n       &lt;body&gt;\n\t&lt;xsl:apply-templates/&gt;\n       &lt;/body&gt;\n     &lt;/html&gt;\n   &lt;/xsl:template&gt;\n\n   &lt;xsl:template match=&quot;ut&quot;&gt;\n   &lt;/xsl:template&gt;\n\n   &lt;xsl:template match=&quot;Tu&quot;&gt;\n     &lt;hr /&gt;\n     &lt;xsl:apply-templates/&gt;\n   &lt;/xsl:template&gt;\n\n\n   &lt;xsl:template match=&quot;Tuv&quot;&gt;\n     &lt;xsl:apply-templates/&gt;\n     &lt;br /&gt;\n   &lt;/xsl:template&gt;\n\n\n&lt;/xsl:stylesheet&gt;\n======================================\n\nThe result is TUs separated by an horizontal line within which TUVs  \nare separated by a line break. It is not perfect (there are UT  \nsegments that sometimes err right after a TUV instead of totally  \ndisappearing) but it is good enough for what I need to do.\n\nI was surprised to see that OOo was not able to open an HTML file and  \ndirectly save it to RTF (or anything, one need to _export_ the file to  \nODT), and even TextEdit on Mac was not able to properly interpret the  \nhorizontal rule, so I had to resort to using OOo...\n\n\n\n\n\nJean-Christophe Helary (JA/EN &gt; FR)\n------------------------------------\nhttp://mac4translators.blogspot.com/\nhttp://twitter.com/brandelune\nhttp://www.doublet.jp\n\n\n"}}