Hello!
This is somewhat of a follow-on to this thread, though for structure tags instead of inline:
https://community.sdl.com/solutions/language/translation_management/sdl_worldserver/f/247/t/7473
I am trying to hide the contents of HTML tag <PRE> if the "class" attribute = "SourceCode". So far, I have had no luck and am wondering what I am doing wrong.
Here's the HTML code; it's very basic:
<html>
<body>
<h1>Test heading</h1>
<PRE class="SourceCode">This text should not be translated.</PRE>
<PRE class="NormalText">This text should be translated.</PRE>
</body>
</html>
I set up the HTML 5 filter in WorldServer 11.1 with the following parser rule -- it is the only one:
PRE[@class="SourceCode"]
This is set to "Not translatable" and "Structure", as I don't want the source code to show up in Studio during translation.
I expect instances of PRE whose class attribute = SourceCode to not be displayed. If the attribute doesn't = SourceCode, then the content should be presented for translation.
What happens, however, is that this setting kills *all* PRE instances, i.e. those that are NOT "SourceCode" as well such as "NormalText".
Any idea what I could be doing wrong? Thanks for any help!