Problem changing parser rule in xml stylesheet from customer

Hi everyone,

Not being an XML expert, I’m currently struggling with a stylesheet (Help&Manual file type setting) I received from my customer and which I’d like to adapt in order to solve the following problem:

In the file with the structure as shown below everything between <conditional-text type=”IF” value=”KONVENTIONELL”/> and <conditional-text type=”END”/> has to be translated (Beispiel: Dieser Text wird übersetzt) whereas everything between <conditional-text type=”IF” value=”ALPHA”/> and <conditional-text type=”END”/> must be untranslatable (Beispiel: Dieser Text wird nicht übersetzt).

In the stylesheet, conditional-text is defined as not to be translated, rule type XPath and tag type inline. When I open the file, both texts appear as translatable.

How would I have to go about to solve this problem?

I work with Studio 2015.

Thank you very much for your help.

Inés

Parents
  • Hi ,

    It sounds as though you may be a little confused here. The stylesheet is something you would use as part of the custom filetype so you can have a realtime preview as you work that is a little more meaningful than the plan XML. It has no influence over what text is parsed for translation at all. Your screenshot shows an XML preview without any stylesheet involved.

    Perhaps your customer provided you with the stylesheet so you had an idea of what the finished product would look like?

    I think your task is this:

    1. Create a custom XML filetype to extract only what should be translated
    2. Use the stylesheet in that custom filetype for an enhanced preview while translating

    Regards

    Paul

    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

  • Hi Paul,
    Thank you for your answer.

    Sorry for mixing up the terms stylesheet and file type.

    I do have a file type setting from the customer and a stylesheet for preview (which unfortunately doesn't work and generates an error message).

    The problem I have is how can I set the rule for conditional-text so that only the text between <conditional-text type=”IF” value=”KONVENTIONELL”/> and <conditional-text type=”END”/>?

    Thank you.
    Inés
Reply Children