Segmentation rule converters corrected

Some users had difficulties to use our stylesheets to convert from OmegaT's "conf" format to SRX and from SRX to conf format.

These stylesheets are written as embedded XSLT, meaning that we add XSLT instructions inside an already well formed XML document, while usually most stylesheets are using the contrary approach. This is ideal when you already have lot of well formed output files but this format has also limitations, such as impossibility to write any kind of template.

We initially thought that not all XSLT engines were compatible with this format, but now it aspects that the problem was the absence of the attribute xsl:version. Now it works, almost for Xalan:

java org.apache.xalan.xslt.Process -IN segmentation.conf -XSL java2srx.xsl -OUT segmentation.srx

java org.apache.xalan.xslt.Process -IN segmentation.srx -XSL srx2java.xsl -OUT segmentation.conf

Note that if you need such a conversion, there is still another solution: DGT-OmegaT does it automatically if you change the name. And DGT-OmegaT has direct support for SRX, correction which is still pending for standard OmegaT.

 

Add new comment

Limited HTML

  • Allowed HTML tags: <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
  • Web page addresses and e-mail addresses turn into links automatically.

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.