[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
Small typo in the input <list2> was not closed:
On 1/24/07, xslt. new <xslt.new@xxxxxxxxx> wrote:
[xsl] Re: xpath question
Subject: [xsl] Re: xpath question From: xslt.new <xslt.new@xxxxxxxxx> Date: Wed, 24 Jan 2007 08:38:24 -0600 |
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.new@xxxxxxxxx> 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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] xpath question, xslt . new | Thread | Re: [xsl] xpath question, David Carlisle |
[xsl] xpath question, xslt . new | Date | Re: [xsl] XSLT 2.0 has arrived, Abel Braaksma |
Month |