Allow refactoring descriptor file to specify default file patterns
Are you missing a feature? Request its implementation here.
-
- Posts: 922
- Joined: Thu May 02, 2019 2:32 pm
Allow refactoring descriptor file to specify default file patterns
Post by chrispitude »
We previously requested the following enhancement:
EXM-46522: Allow refactoring descriptor file to specify default file patterns
Different refactoring operations might apply to different file types:
It would be nice if a refactoring descriptor could specify a default file filter value, just as default parameter values can be specified. Indeed, the same behavior could be used - if the default is edited, the change is remembered within the current session only. And if no default is specified in the descriptor file, then the existing behavior could be used (the last-used filter pattern is carried into the dialog of the next refactoring operation, even if it is a different one).
Here is a testcase:
There are separate refactoring operations for DITA map and topic files. Note the following issues:
EXM-46522: Allow refactoring descriptor file to specify default file patterns
Different refactoring operations might apply to different file types:
- DITA maps and topics (*.dita,*.ditamap)
- DITA maps only (*.ditamap)
- DITA-OT project files (*.xml)
- XSLT stylesheet files (*.xsl)
It would be nice if a refactoring descriptor could specify a default file filter value, just as default parameter values can be specified. Indeed, the same behavior could be used - if the default is edited, the change is remembered within the current session only. And if no default is specified in the descriptor file, then the existing behavior could be used (the last-used filter pattern is carried into the dialog of the next refactoring operation, even if it is a different one).
Here is a testcase:
oxygen_refactoring_default_file_types.zip
There are separate refactoring operations for DITA map and topic files. Note the following issues:
- If you manually set the file filter for one refactoring operation, it incorrectly becomes the default for the other refactoring operation.
- If you apply either refactoring operation at the Project scope with a blank filter, the SVG file is modified by rewriting its CDATA element. This could be prevented by having the default filter scope exclude .svg files.
You do not have the required permissions to view the files attached to this post.
-
- Posts: 922
- Joined: Thu May 02, 2019 2:32 pm
Re: Allow refactoring descriptor file to specify default file patterns
Post by chrispitude »
Hi Radu,
The SVG is generated by Microsoft Visio. It seems to store its SVG global <style> information as follows:
Even if the XSLT stylesheet does not modify anything in the SVG file, somehow the refactoring operation "diff checker" reserializes the CDATA and thus sees a difference, causing such SVGs in the project to become modified for Git revision control.
The SVG is generated by Microsoft Visio. It seems to store its SVG global <style> information as follows:
image.png
Even if the XSLT stylesheet does not modify anything in the SVG file, somehow the refactoring operation "diff checker" reserializes the CDATA and thus sees a difference, causing such SVGs in the project to become modified for Git revision control.
You do not have the required permissions to view the files attached to this post.
-
- Posts: 9434
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Allow refactoring descriptor file to specify default file patterns
Hi Chris,
Maybe a workaround would be to do this in the XSLT:
but there still may be some differences when serializing.
Anyway we are working on that issue which you suggested that an XML refactoring operation could also define a file filter to use as default.
Regards,
Radu
Maybe a workaround would be to do this in the XSLT:
Code: Select all
<xsl:output cdata-section-elements="svg:style"/>
Anyway we are working on that issue which you suggested that an XML refactoring operation could also define a file filter to use as default.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 922
- Joined: Thu May 02, 2019 2:32 pm
Re: Allow refactoring descriptor file to specify default file patterns
Post by chrispitude »
I see that this has been implemented in Oxygen v26 via the @filesFilter attribute:
https://www.oxygenxml.com/doc/versions/ ... tools.html
Thank you!
https://www.oxygenxml.com/doc/versions/ ... tools.html
Thank you!
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