Small typo in the input <list2> was not closed:
<list1>
<text>
<para>
<scene>
<set1></set1>
<set2></set2>
</scene>
</para>
</text>
<list2>
<text>
<para>
<scene>
<set1></set1>
<set2></set2>
</scene>
</para>
</text>
</list2>
</list1>
<list1>
<text>
<para>
<scene>
<set1></set1>
<set2></set2>
</scene>
</para>
</text>
<list2>
<text>
<para>
<scene>
<set1></set1>
<set2></set2>
</scene>
</para>
</text>
</list2>
</list1>
On 1/24/07, xslt. new <xslt(_dot_)new(_at_)gmail(_dot_)com> wrote:
Hello:
For the following xml input:
<list1>
<text>
<para>
<scene>
<set1></set1>
<set2></set2>
</scene>
</para>
</text>
<list2>
<text>
<para>
<scene>
<set1></set1>
<set2></set2>
</scene>
</para>
</text>
<list2>
</list1>
<list1>
<text>
<para>
<scene>
<set1></set1>
<set2></set2>
</scene>
</para>
</text>
<list2>
<text>
<para>
<scene>
<set1></set1>
<set2></set2>
</scene>
</para>
</text>
<list2>
</list1>
where list2 is a child of list1, if I want to locate only the <scene>
element under ALL<list1> elements in the whole XML input inside the
<list1> template, and NOT the <scene> element under <list2>, and vice
versa, what is the xpath expression to use?
I tried using .//scene. But this locates even the <scene> elements
under <list2> since it is a child of list1.
Thank you
--~------------------------------------------------------------------
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>
--~--