Skip to content

Instantly share code, notes, and snippets.



Last active Feb 6, 2021
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"/>

This comment has been minimized.

Copy link
Owner Author

@nogajun 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