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
Conferences Close Tree View
+ Stylus Studio Feature Requests (1192)
- Stylus Studio Technical Forum (14621)
-> + Automation using Visual Studio (7)
-> + CSV to XML conversion help (2)
-> + XML tree help (3)
-> + java.lang.NullPointerException... (2)
-> + Creating schema from xml - how... (3)
-> + Mismatch between intellisense ... (4)
-> + Using FOP 0.94 in XML Pipeline (2)
-> - UV Kit (1)
-> - Preview PDF as HTML? (1)
-> + ArrayIndexOutOfBoundsException... (3)
-> + WSCC to KML transform help (5)
-> + Using XSV 3.1-1 as an external... (2)
-> + Cannot debug stylesheet (2)
-> + Error installing Stylus Studio... (3)
-> - Windows XP "not responding" er... (1)
-> - Windows XP "not responding" er... (1)
-> + HTML to XSL (2)
-> + Run Stylus studio from command... (2)
-> - Setting Context for XPath Quer... (5)
-> ->Setting Context for XPath...
-> ->Setting Context for XPath...
-> ->Setting Context for XPath...
-> ->Setting Context for XPath...
-> + Batch process to check well-fo... (9)
-- Previous [1201-1220] [1221-1240] [1241-1260] Next
+ Website Feedback (249)
+ XSLT Help and Discussion (7625)
+ XQuery Help and Discussion (2017)
+ Stylus Studio FAQs (159)
+ Stylus Studio Code Samples & Utilities (364)
+ Stylus Studio Announcements (113)
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!

   
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.