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

RE: XML Encoding of XPath: Examples

  • From: Evan Lenz <elenz@x...>
  • To: Dan Diebolt <dandiebolt@y...>, Wayne Steele <xmlmaster@h...>,vdv@d..., xml-dev@l...
  • Date: Thu, 15 Mar 2001 15:47:54 -0800

xpath examples
Dan Diebolt wrote:
> Am I missing something here? Why would it
> be desirable to reform XPath into XML?
> What problem would this address?

It would address the problem of the programmatic manipulation of XPath
expressions. I don't think anyone's suggesting that XSLT should use an XML
syntax for XPath, but it would be nice if one could *view* an XPath
expression as XML, in order to leverage all of the familiar XML processing
tools, eg. DOM, SAX, and XSLT (which, of course, includes XPath itself).

One particular use case that I've come across is the manipulation of
existing XSLT stylesheets. XSLT can work quite well to make these
manipulations, but it does not work well for string parsing in general, and
parsing XPath expressions in particular. If I had, say, an extension
function that returned a root node containing the XML tree representation of
a particular XPath expression, then I could query and/or manipulate that
XPath expression just as I would any other tree. Another extension function
would allow me to serialize that tree back into XPath syntax.

This same general problem is addressed in this recent xml-dev thread:
http://lists.xml.org/archives/xml-dev/200103/threads.html#00178

Hope this helps,

Evan Lenz
XYZFind Corp.


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
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

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.