The start Tag is broken into 2 parts in Trados 2022 and the first part is missing

Hello everyone:

Recently we've been encountered an issue regarding the link error in the DE PDF which is generated from the translated XML file in Trados.

Screenshot showing the DE PDF with the text '10.7. Unterbenutzer-Registrierung(P.59) Der Unterbenutzer(P.68) kann diese Funktion nicht einstellen.' The first link is visible but should be hidden.

As you see, there are two links in DE PDF but the first link "10.7. Unterbenutzer-Registrierung(P.59)" is supposed to be invisible.

Here is the correct sentence in source EN PDF.

Screenshot showing the EN PDF with the text 'Sub user(P.57) cannot set this function.' The link is correctly displayed without any visibility issues.

After we checked the source XML and Sdlxliff file, we found it might be related with Tag recognition in Trados.

In XML, the highlight part is an entire link.

Screenshot of the XML code highlighting the 'ri:page ri:content-title' attribute set to 'Sub-user registration' and the link text 'Sub users' marked as translatable.

However, it is recognized as two parts in Trados and the fist part is uneditable and can only be seen by clicking "All content".

Screenshot of the Trados interface showing the XML tags for 'Sub-user registration' and 'Sub users' with the German translation 'Der Unterbenutzer' and the issue with tag recognition.

Although we tried setting the "ri:page/@ri:content-title" in Parser to "Always Translatable", there was no change.

Is there anything we can do in Trados to figure it out?

Thank you for your attention. We look forward to your suggestions.



Generated Image Alt-Text
[edited by: RWS Community AI at 5:51 AM (GMT 1) on 29 Aug 2025]
emoji
  • Probability score: 0.6  

    Question improvement suggestion: Provide specific details about the steps you took to troubleshoot the issue, including any error messages received and the exact version of Trados Studio you are using.  

    In the meantime, based on the information you have provided, here is a suggested answer to your question:  

    Hello,  

    It seems you are encountering an issue with tag recognition in Trados Studio 2022, specifically with the links in the generated DE PDF from the translated XML file. Here are some steps you can take to troubleshoot and potentially resolve the issue:  

    **Step 1:** Verify the XML Structure  

    Check the source XML file to ensure that the tags are correctly structured. Look for any missing or improperly formatted tags that could be causing the issue.  

    **Step 2:** Use the Correct Embedded Content Processor  

    Make sure you are using the appropriate embedded content processor for your XML files. If you are using the HTML Embedded Content processor, ensure that all special characters are properly escaped as entities (e.g., use < for < and > for >).  

    **Step 3:** Adjust Parser Settings  

    Since you mentioned that setting "ri:page/@ri:content-title" to "Always Translatable" did not yield any changes, consider reviewing other parser settings in your File Type configuration. Ensure that the tag definitions are correctly set up to recognize the tags in your XML.  

    **Step 4:** Check for Unrecognized Characters  

    Open the file in the Online Editor and enable "Show Tag Details" to identify any unrecognized characters in the tag segments. If you find any, correct them accordingly.  

    **Step 5:** Test with Different File Types  

    If the issue persists, try using a different file type configuration or embedded content processor to see if that resolves the problem.  

    **Step 6:** Review Translation Memory  

    Sometimes, issues can arise from the Translation Memory. Check if the unrecognized characters are coming from the TM and correct them if necessary.  

    If these steps do not resolve the issue, please provide additional details about any error messages you are encountering and the specific version of Trados Studio you are using. This information will help in diagnosing the problem more effectively.  

    I hope this answer addressed your question. If not, please reject the answer, add the question improvement suggestion information, and click the RWS Community AI checkbox on the right to try again.  

    RWS Community AI

    emoji
  •  

    Is this a PDF or an XML?  What was the actual source file you translated? I think a small sample file with this problematic part would be really helpful here.

    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
  • Hello Paul:

    Thank you for your attention and sorry for my late response.

    The actual source file I translated is XML.

    Regarding the PDF, it is generated from the translated XML after we submitted it to the client.

    I'm enclosing the sample XML with the problematic part but I'm not sure if I enclosed it correctly.

    Let me know if you need more details.

    Thanks in advance.

    /cfs-file/__key/communityserver-discussions-components-files/90/Sample_5F00_XML_5F00_250902.xml

    emoji
  •  

    Perfect... that helps.  So I guess this is what you're after?

    Screenshot showing a table with the title 'Sub-user registration'. Below, text reads 'Sub-users cannot set this function' with numbered purple icons 1, 2, 3, 3, 2, 1.

    Your problem, I think, is that the text you're trying to get at is in an attribute and not an element.  So it's not extracted by default.  I created a parser rule for this and you can see from the document structure column on the right the initials ATT which show you the content is the value of the attribute.  These were the rules I used:

    Screenshot of a table listing rules for translation. Columns include 'Rule', 'Translate', and 'Tag type'. Examples include 'title' as 'Always Translatable' and 'td' as 'Always Translatable'.

    The one in question that you could not get at was this:

    //ri:page/@ri:content-title

    Hope that helps?

    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


    Generated Image Alt-Text
    [edited by: RWS Community AI at 2:58 PM (GMT 1) on 2 Sep 2025]
  • Thank you for your kind reply, Paul.

    You are right. The one in question is "//ri:page/@ri:content-title".

    However,it is not necessary to extract the text to translate. We are intended to put "//ri:page/@ri:content-title" tag in translatable segments instead of being hided in Content.

    Here is current status:

    Screenshot showing Trados Studio editor with highlighted tags and text. Left pane displays 'Sub-users cannot set this function.' Right pane shows German translation.

    Below is what we expected:

    Screenshot showing Trados Studio editor with tags and text. Left pane displays 'Sub-users cannot set this function.' Right pane shows German translation with 100% match.

    Is it possible to get this result by setting "//ri:page/@ri:content-title" in parser?

    Also, I enclosed the setting file we used for your reference.

    Thanks again for your help~

    emoji


    Generated Image Alt-Text
    [edited by: RWS Community AI at 9:30 AM (GMT 1) on 3 Sep 2025]
  •  

    You mean like this?

    Screenshot showing XML content in Trados Studio with highlighted tags and text 'Sub-users cannot set this function.'

    Achieved with this rule on the element... not the attribute:

    Edit Rule dialog in Trados Studio displaying XPath rule 'ri:page' with properties set to Translate: Yes, Tag Type: Inline, and Segmentation hint: Include.

    Alternatively you could use a stylesheet just to keep the translation environment clean?  Then it's still visible, and the full content is less cluttered for review as well.

    Trados Studio interface showing source text 'Sub-users cannot set this function.' with XML tags and target text 'Titel' in the preview pane.

    I put a version here in case it's helpful:

    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet version="1.0"
      xmlns:xsl="www.w3.org/.../Transform"
      xmlns:ac="atlassian.com/content"
      xmlns:ri="atlassian.com/.../identifier"
      exclude-result-prefixes="ac ri">
    
      <xsl:output method="html" encoding="UTF-8" indent="yes"/>
    
      <!-- HTML shell -->
      <xsl:template match="/">
        <html>
          <head>
            <meta charset="UTF-8"/>
            <style>
              body{font-family:Segoe UI,Arial,sans-serif;margin:1rem}
              h1{font-size:1.4rem;margin:.25rem 0 .75rem}
            </style>
          </head>
          <body>
            <!-- render page title then content -->
            <xsl:apply-templates select="//title"/>
            <xsl:apply-templates select="//content"/>
          </body>
        </html>
      </xsl:template>
    
      <!-- Identity -->
      <xsl:template match="@*|node()">
        <xsl:copy>
          <xsl:apply-templates select="@*|node()"/>
        </xsl:copy>
      </xsl:template>
    
      <!-- Render <title> as a heading -->
      <xsl:template match="title">
        <h1><xsl:value-of select="normalize-space(.)"/></h1>
      </xsl:template>
    
      <!-- Key: prepend the referenced page title BEFORE the visible link text,
           but keep all original nodes so Studio segment mapping stays intact. -->
      <xsl:template match="ac:plain-text-link-body[../ri:page/@ri:content-title]">
        <!-- insert the attribute value on its own line -->
        <xsl:text>[</xsl:text>
        <xsl:value-of select="../ri:page/@ri:content-title"/>
        <xsl:text>]</xsl:text><br/>
        <!-- now output the original link body exactly as-is -->
        <xsl:copy>
          <xsl:apply-templates select="@*|node()"/>
        </xsl:copy>
      </xsl:template>
    
    </xsl: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



    Generated Image Alt-Text
    [edited by: RWS Community AI at 10:01 AM (GMT 1) on 3 Sep 2025]