RWS Trados SR1: Preview based on self build xslt file does no longer work

We have been using a self build xslt stylesheet to preview custom filter based XML translation projects. The preview worked for SDLTrados 2019 and RWSTrados 2022 until we upgraded to SR1. Now we get a blank panel in Preview. 

- tried uninstalling, re-installing but the Preview stays blank in the Preview panel in the translation editor. 

Q: are there new requirements for xslt stylesheet based previews? 

here the 2 relevant screen shots.

Screenshot of Trados Studio with a blank preview panel in the translation editor, showing file path 'C:UsersnmDesktopTeststestPreviewprojectTestPreviewepub-Accessibility.xml'.

and this one

 Screenshot of Trados Studio settings showing the Preview section with 'Stylesheet transform: xml-to-html.xsl' selected for XML file previews.



Generated Image Alt-Text
[edited by: Trados AI at 12:22 PM (GMT 0) on 29 Feb 2024]
emoji
Parents Reply
  •  

    Can you try making sure that you have this before the body element of your stylesheet?

    <head></head>

    For example:

    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
        <xsl:output method="html" indent="yes"/>
        
        <xsl:template match="/root">
            <html>
    		<head></head>
                <body>

    A change was implemented from 2021 onwards that requires the addition of the header element to your xslt.  I don't know why yet, as adding an empty element pair like this seems a little pointless, but I will update when I get more information.

    Let me know if this is the problem you are having with your stylesheet?

    Paul Filkin | RWS Group

    ________________________
    Design your own training!

    You've done the courses and still need to go a little further, or still not clear? 
    Tell us what you need in our Community Solutions Hub

    emoji
Children