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

Re: (simple?) xpath question

Subject: Re: (simple?) xpath question
From: mark bordelon <markcbordelon@xxxxxxxxx>
Date: Fri, 29 Aug 2008 13:01:18 -0700 (PDT)
Re:  (simple?) xpath question
Xmlizer, thanks for the quick response!

Following your post, is there a simple enough xsl solution that could be passed to
XmlDocument.SelectNodes(xslstr) to acheive the nodelist I want?


--- On Fri, 8/29/08, Xmlizer <xmlizer+xsllist@xxxxxxxxx> wrote:

> From: Xmlizer <xmlizer+xsllist@xxxxxxxxx>
> Subject: Re:  (simple?) xpath question
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Date: Friday, August 29, 2008, 12:12 PM
> 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

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.