[oXygen-user] XPath from Project context menu

George Cristian Bina
Tue Aug 24 08:16:59 CDT 2010


Hi Wendell,

Indeed the Find/Replace in files support covers part of this, as you can 
enter there an XPath expression that selects parts of the document and 
then search for everything (using .* as regular expression).

Another possibility is to use the Saxon collection function and thus 
have access to the files from a folder, event recursively, for example

collection('.?select=*.xsd;recurse=yes')/*

will list the root elements of all the .xsd files from the same 
directory as the current file or from a subfolder of the current file.

This will cover also part of the use case you mentioned but it is not 
user friendly and requires expert knowledge from the user.

We will consider adding something similar to your suggestion.

Best Regards,
George
-- 
George Cristian Bina
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com

On 8/20/10 8:01 PM, Wendell Piez wrote:
> Hi,
>
> One of the features I use most in oXygen is, of course, the XPath
> evaluation toolbar.
>
> Another is the context menus in projects, for validating files or
> sets of files (against their own or ad-hoc schemas), transforming
> them and what not.
>
> I can't believe I've worked all this time without wanting to query
> XPath over a file set directly from the Project View.
>
> But actually I have. It's just that I usually write a little XQuery
> or Schematron, or work through the Find/Replace in Files dialogue, or
> find another way to get to the data I want. Each of these has
> strengths and weaknesses.
>
> But I bet it wouldn't be difficult for the oXygen magicians to give
> me a little entry box right-clicking a selection in the Project View,
> where I could type my XPath directly ... or am I missing something?
>
> Cheers,
> Wendell
>
>
>
> ======================================================================
> Wendell Piez                            mailto:
> Mulberry Technologies, Inc.                http://www.mulberrytech.com
> 17 West Jefferson Street                    Direct Phone: 301/315-9635
> Suite 207                                          Phone: 301/315-9631
> Rockville, MD  20850                                 Fax: 301/315-8285
> ----------------------------------------------------------------------
>     Mulberry Technologies: A Consultancy Specializing in SGML and XML
> ======================================================================
>
> _______________________________________________
> oXygen-user mailing list
> 
> http://www.oxygenxml.com/mailman/listinfo/oxygen-user



More information about the oXygen-user mailing list