XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
Randy BoothSubject: Setting Context for XPath Queries?
Author: Randy Booth
Date: 27 Feb 2008 10:20 PM
I was curious if anyone could tell me if there is a way to set the context for Xpath queries? I get along pretty good without being able to do this, but I was curious if it can be done...

Postnext
Minollo I.Subject: Setting Context for XPath Queries?
Author: Minollo I.
Date: 27 Feb 2008 10:30 PM
You mean in the XPath evaluator available as part of the XML editor? Yes, just click on a specific element in the source, and try executing ".", for example.

Postnext
Randy BoothSubject: Setting Context for XPath Queries?
Author: Randy Booth
Date: 27 Feb 2008 10:38 PM
What I was talking about was when I was opening up the xpath query editor against an XML document... In my XSLT documents I often use <xsl:template match="(some node)"> to set the context for the evaluations that I'm performing in that template. When I run the XPath query editor against the source XML file I usually have to run my queries with // or by specifying the entire path. I was curious if there was a way to tell the xpath query editor to only evaluate a certain portion of the xml document when doing it's queries.

Postnext
Minollo I.Subject: Setting Context for XPath Queries?
Author: Minollo I.
Date: 27 Feb 2008 10:46 PM
...yes, that's the question that I think I answered. Clicking on the source panel on a specific element, attribute or text is the action which sets the context for the execution of the XPath.

Posttop
Randy BoothSubject: Setting Context for XPath Queries?
Author: Randy Booth
Date: 27 Feb 2008 10:51 PM
Sorry ;-) Just tried it out... You are a genius! Thanks for your help!

 
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.