[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

XPATH forumulation problem

Subject: XPATH forumulation problem
From: "Jonas Lundberg" <my.name.is.hans@xxxxxxxxx>
Date: Sun, 11 Mar 2007 18:08:06 +0100
 XPATH forumulation problem
Hello,
I have the following XML 1) and 2) below. My problem is, how to I
write an Xpath that selects all <aspects> in 2), that has ALL of the
<aspect> in the <aspects> tag in 1), but which might also have
additional <aspect>? I cannot konw in advance how many <aspect> there
will be.

Maybe it's easy but I haven't been able to figure it out...

Best regards
Hans

1)
<xml>
<aspects>
<aspect>blog post</aspect>
<aspect>january</aspect>
.... ( any number of additional aspect) ...
<aspect>cars</aspect>
</aspects>
</xml>

2)
<xml>
<aspects>
<aspect>blog post</aspect>
<aspect>january</aspect>
.... ( any number of additional aspect) ...
<aspect>cars</aspect>
</aspects>
<aspects>
...
</aspects>
<aspects>
...
</aspects>
<aspects>
...
</aspects>
...
</xml>

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.