Multiple elements with the same attribute and attribute value

Hello all,

We have an XML file for translation where we were asked to exclude particular elements when some attributes have specific values. Some of them can be found below:

Elements: p; ph; note;..... and many more...

Attribute: outputclass

Value: rn

In XML Spy we have tried the following and it works:

//(p|ph|note)[@outputclass='rn']

which unfortunately doesn't when we place that in Studio 2017.

Since we have 16 elements and each can has 26 different attribute values, is there any way to avoid typing 416 XPaths?

Regards

Pavlos

 

Pavlos Ponos
Localization Engineer

Tell the world.

NLG GmbH
+30.2310.502.192 ext. 6259         
NLGworldwide.com

Follow us on LinkedIn | Visit our New Website

Parents Reply Children
No Data