Skip to content

Instantly share code, notes, and snippets.

Last active November 19, 2022 04:33
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
<xsl:stylesheet version="1.0" xmlns:xsl="">
<xsl:output method="text" encoding="utf-8" />
<xsl:template match="/">
<xsl:for-each select="tmx/body/tu">
<xsl:value-of select="tuv[@lang='en-US']/seg"/>
<xsl:value-of select="tuv[@lang='ja']/seg"/>
Copy link

nogajun commented Feb 6, 2021

tmx2tsv.xsl (Convert TMX to TSV using xsltproc)

Use xsltproc to convert a translation memory TMX file to a TSV file.


$ xsltproc tmx2tsv.xsl file.tmx > file.tsv

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment