XML-XPATH. Merging node lists

the xpath expression "//book" selects all "book" nodes, and the xpath "//pen" selects all pen nodes.
How to make a single xpath expression that selects all "book" nodes and "pen" nodes at the same time?

Something like "//book and //pen" or "merge(//book, //pen)
(these do not work)

dportabellaAsked:
Who is Participating?
 
R7AFCommented:
<xsl:value-of select="//book | //pen"/>
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.