Can I use Oxygen variables with custom refactoring descriptor file?
Oxygen general issues.
-
- Posts: 14
- Joined: Tue Aug 28, 2018 3:51 pm
Can I use Oxygen variables with custom refactoring descriptor file?
https://www.oxygenxml.com/doc/versions/ ... iptor.html
I want to make the path of the current XML file available to the XQuery update script in my custom refactoring operation.
Is it possible to pass ${cfdu} in the descriptor file?
I want to make the path of the current XML file available to the XQuery update script in my custom refactoring operation.
Is it possible to pass ${cfdu} in the descriptor file?
-
- Posts: 9436
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Can I use Oxygen variables with custom refactoring descriptor file?
Hi,
Right now it is not possible to pass an Oxygen editor variable as a parameter value to the script and have the editor variable automatically expand before being sent to the script, we do have plans for this and I will update this forum thread when this feature becomes available.
About your particular request, why don't you use the "document-uri()" XQuery function for it?
Regards,
Radu
Right now it is not possible to pass an Oxygen editor variable as a parameter value to the script and have the editor variable automatically expand before being sent to the script, we do have plans for this and I will update this forum thread when this feature becomes available.
About your particular request, why don't you use the "document-uri()" XQuery function for it?
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 14
- Joined: Tue Aug 28, 2018 3:51 pm
Re: Can I use Oxygen variables with custom refactoring descriptor file?
Thanks, this would be a great enhancement.
As a workaround I will use document-uri(), but I wanted to avoid having to use function chaining like replace(document-uri(),tokenize(document-uri(),'/')[last()],'') (is there a simpler way for saying "give me the path of the current file"?)
Thanks!
As a workaround I will use document-uri(), but I wanted to avoid having to use function chaining like replace(document-uri(),tokenize(document-uri(),'/')[last()],'') (is there a simpler way for saying "give me the path of the current file"?)
Thanks!
-
- Posts: 9436
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Can I use Oxygen variables with custom refactoring descriptor file?
Hi,
Right, maybe for now you can create a separate XQuery function to obtain the parent folder URL for the current file and then import and use that function in multiple XQuery scripts.
Regards,
Radu
Right, maybe for now you can create a separate XQuery function to obtain the parent folder URL for the current file and then import and use that function in multiple XQuery scripts.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
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