• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 409
  • Last Modified:

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)

0
dportabella
Asked:
dportabella
1 Solution
 
R7AFCommented:
<xsl:value-of select="//book | //pen"/>
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now