xsl-list
[Top] [All Lists]

[xsl] XPATH forumulation problem

2007-03-11 10:08:28
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>

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>
  • [xsl] XPATH forumulation problem, Jonas Lundberg <=