[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] (simple?) xpath question


Subject: Re: [xsl] (simple?) xpath question
From: Xmlizer <xmlizer+xsllist@xxxxxxxxx>
Date: Fri, 29 Aug 2008 21:12:15 +0200

that's not possible to do with XPath only

But with XSLT you can

Xmlizer

On Fri, Aug 29, 2008 at 9:06 PM, mark bordelon <markcbordelon@xxxxxxxxx> wrote:
> All *help*!
>
> What is the best way to query xml with xpath to get a disjoint nodelist? Specifically i want to include just the root node alongwith a descendent node.
>
> XML:
>
> <a>
>   <b>
>     <c>
>     </c>
>  </b>
> </a>
>
> XPATH:
>
> //c
>
> DESIRED RESULT NODELIST:
> i.e. not this:
> <c>
> </c>
>
> but rather this:
> <a>
>   <c>
>   </c>
> </a>


Current Thread
Keywords