Explicitly Check-in/Check-out feature
Are you missing a feature? Request its implementation here.
-
- Posts: 19
- Joined: Fri Dec 10, 2010 2:11 am
Explicitly Check-in/Check-out feature
Hi all, please pardon me if this is already implemented in Oxygen, since I am just beginning to use it, or any one could kindly help me how to customize this in Oxygen, I would be grateful.
Currently I am using Oxygen XML editor 12.0. Just as the title suggests, what I want is an option that can enable me to securely connect to my eXist database, open a file stored in eXist, made changes to that copy, and save it directly in eXist. I am now connecting my local eXist-database, and actually the "openURL" under "File" menu does nearly what I want, it can connect to eXist through webdav and list all the folders and files. The thing I want but is not there is I want an additional "search" feature there, by using which I can search based on an attribute inside the xml document.
I know this sounds too specific, so I wonder if there is any way I could implement this feature myself in Oxygen. However, all the custom actions need you have a document of a particular type opened first, but what I want is a global function, even no document open.
I also noticed when no document is open in Oxygen, there is a "Database" button that can lead me to "Data source Explorer", I am not sure whether this will do what I want either, since I think it is a connection specifier.
I am sorry for brining up these complications, but would be really grateful if any one could let me know if this is feasible(like adding an entry to the file menu, etc) in this current version.
Currently I am using Oxygen XML editor 12.0. Just as the title suggests, what I want is an option that can enable me to securely connect to my eXist database, open a file stored in eXist, made changes to that copy, and save it directly in eXist. I am now connecting my local eXist-database, and actually the "openURL" under "File" menu does nearly what I want, it can connect to eXist through webdav and list all the folders and files. The thing I want but is not there is I want an additional "search" feature there, by using which I can search based on an attribute inside the xml document.
I know this sounds too specific, so I wonder if there is any way I could implement this feature myself in Oxygen. However, all the custom actions need you have a document of a particular type opened first, but what I want is a global function, even no document open.
I also noticed when no document is open in Oxygen, there is a "Database" button that can lead me to "Data source Explorer", I am not sure whether this will do what I want either, since I think it is a connection specifier.
I am sorry for brining up these complications, but would be really grateful if any one could let me know if this is feasible(like adding an entry to the file menu, etc) in this current version.
-
- Posts: 2879
- Joined: Tue May 17, 2005 4:01 pm
Re: Explicitly Check-in/Check-out feature
Hello,
The File -> Open URL allows you to access eXist via WebDAV. But that only allows access to the individual resources from the database.
You can also access eXist directly from the Database perspective(the button you found) or simply by opening the Data Source Explorer view(Window -> Show View -> Data Source Explorer)
After configuring a connection you will be able to navigate the database and execute XQuery.
There's a video demonstration for configuring and using an eXist driver and connection to execute an XQuery over the eXist database:
http://www.oxygenxml.com/demo/eXist_Database.html
Executing an XQuery is the means by which you can search in the eXist database. To search for all elements that have an attribute with a certain value you should execute an XQuery like this:
Regards,
Adrian
The File -> Open URL allows you to access eXist via WebDAV. But that only allows access to the individual resources from the database.
You can also access eXist directly from the Database perspective(the button you found) or simply by opening the Data Source Explorer view(Window -> Show View -> Data Source Explorer)
After configuring a connection you will be able to navigate the database and execute XQuery.
There's a video demonstration for configuring and using an eXist driver and connection to execute an XQuery over the eXist database:
http://www.oxygenxml.com/demo/eXist_Database.html
Executing an XQuery is the means by which you can search in the eXist database. To search for all elements that have an attribute with a certain value you should execute an XQuery like this:
Code: Select all
collection()//*[@attrName="attrVal"]
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
-
- Posts: 19
- Joined: Fri Dec 10, 2010 2:11 am
Re: Explicitly Check-in/Check-out feature
Thanks Adrian.
I now have all of it configured and working. It worked by using my XQuery to search, and returns all the elements that has certain attribute match with my provided value.
Currently, it only lists out all of the matching elements across different files, is it possible, when I click on a matching result element, the containing xml file will also be shown? Since these matching elements may reside in different xml files under same directory.
Thanks!
I now have all of it configured and working. It worked by using my XQuery to search, and returns all the elements that has certain attribute match with my provided value.
Currently, it only lists out all of the matching elements across different files, is it possible, when I click on a matching result element, the containing xml file will also be shown? Since these matching elements may reside in different xml files under same directory.
Thanks!
-
- Posts: 2879
- Joined: Tue May 17, 2005 4:01 pm
Re: Explicitly Check-in/Check-out feature
It's possible, but that would mean rewriting the XQuery expression to return the resources which have elements that have the specified attribute. You will get the entire resource but unfortunately you will lose the highlighting of the element that contains that attribute.
Try this expression:
You have to experiment a little with XQuery/XPath and you'll find it's rather flexible.
Regards,
Adrian
Try this expression:
Code: Select all
collection()/*[descendant-or-self::*[@attrName="attrVal"]]
Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service