You can use or , and it is really correct to use it in this context, because you do not need test nodes:
<xsl:apply-templates select=" //w:body /w:p [w:r/w:t or w:r/w:pict]">
| (combining) is indispensable only if you need to select test nodes ( w:t and w:pict ):
<xsl:apply-templates select=" //w:body/w:p/w:r/w:t | //w:body/w:p/w:r/w:pict">
where XPath 2.0 lets you write more briefly:
<xsl:apply-templates select=" //w:body/w:p/w:r/(w:t|w:pict)"/>
Emiliano poggi
source share