Remove processing-instruction from content completion
Post here questions and problems related to oXygen frameworks/document types.
-
- Posts: 168
- Joined: Fri Jan 20, 2017 1:11 pm
Remove processing-instruction from content completion
Hello,
In version 24.1.0.0, is it possible to remove processing-instruction from the content completion ?
I tried this in our framework extension script files and it does not work :
Thanks,
Regards,
Isabelle
In version 24.1.0.0, is it possible to remove processing-instruction from the content completion ?
I tried this in our framework extension script files and it does not work :
Code: Select all
<contentCompletion xmlns="http://www.oxygenxml.com/ns/framework/extend">
<schemaProposals>
<removeProposal renderName="processing-instruction"/>
</schemaProposals>
</contentCompletion>
Code: Select all
<contentCompletion xmlns="http://www.oxygenxml.com/ns/framework/extend">
<authorActions>
<removeAction id="processing-instruction" inCCWindow="true"/>
</authorActions>
</contentCompletion>
Regards,
Isabelle
-
- Posts: 1016
- Joined: Wed Nov 16, 2005 11:11 am
Re: Remove processing-instruction from content completion
Post by alex_jitianu »
Hi,
It can be filtered like this. What happens is that you must specify from where you want to remove the proposals. If no "from" attribute is specified then no filtering is performed. In the next version we changed the default behavior and we will remove the proposal from all places when no specific "from " attribute is declared.
Best regards,
Alex
It can be filtered like this. What happens is that you must specify from where you want to remove the proposals. If no "from" attribute is specified then no filtering is performed. In the next version we changed the default behavior and we will remove the proposal from all places when no specific "from " attribute is declared.
Code: Select all
<contentCompletion>
<schemaProposals>
<removeProposal renderName="processing-instruction" fromCCWindow="true"/>
</schemaProposals>
</contentCompletion>
Alex
-
- Posts: 168
- Joined: Fri Jan 20, 2017 1:11 pm
Re: Remove processing-instruction from content completion
Hello,
I tried this
And I still have processing-instruction in the content completion pop-up.
processing-instruction does not come with our schema but from Oxygen.
Is it possible to filter Oxygen native proposal like processing-instruction, comment and cdata ?
Regards,
Isabelle
I tried this
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<script xmlns="http://www.oxygenxml.com/ns/framework/extend"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.oxygenxml.com/ns/framework/extend http://www.oxygenxml.com/ns/framework/extend/frameworkExtensionScript.xsd"
base="S1000D - DM Procedure">
<name>S1000D - DM Procedure - CUSTOM</name>
<description/>
<priority>Highest</priority>
<author>
<contentCompletion>
<schemaProposals>
<removeProposal renderName="processing-instruction" fromCCWindow="true"/>
</schemaProposals>
</contentCompletion>
</author>
</script>
processing-instruction does not come with our schema but from Oxygen.
Is it possible to filter Oxygen native proposal like processing-instruction, comment and cdata ?
Regards,
Isabelle
-
- Posts: 1016
- Joined: Wed Nov 16, 2005 11:11 am
Re: Remove processing-instruction from content completion
Post by alex_jitianu »
Hi Isabelle,
I'm not sure why it's not working. I've tried it myself and it worked. I'll investigate a bit more.
You can hide hide them from options. Also, from the API you can use ro.sync.exml.workspace.api.options.GlobalOptionsStorage.setGlobalObjectProperty(String, Object) to impose these options. The value must be a java.lang.Boolean and the keys are:
Best regards,
Alex
I'm not sure why it's not working. I've tried it myself and it worked. I'll investigate a bit more.
You can hide hide them from options. Also, from the API you can use ro.sync.exml.workspace.api.options.GlobalOptionsStorage.setGlobalObjectProperty(String, Object) to impose these options. The value must be a java.lang.Boolean and the keys are:
Code: Select all
author.show.processing.instructions
author.show.comments
author.show.doctypes
Alex
-
- Posts: 1016
- Joined: Wed Nov 16, 2005 11:11 am
Re: Remove processing-instruction from content completion
Post by alex_jitianu »
Hi Isabelle,
I've managed to reproduce the issue with the framework script. I will investigate it and fix it for the next release.
Best regards,
Alex
I've managed to reproduce the issue with the framework script. I will investigate it and fix it for the next release.
Best regards,
Alex
-
- Posts: 1016
- Joined: Wed Nov 16, 2005 11:11 am
Re: Remove processing-instruction from content completion
Post by alex_jitianu »
Hello,
In Oxygen 25, which was just released, we've fixed this issue.You'll be able cu customize schema proposals when creating a new framework without a base. I hope it helps in the future!
Best regards,
Alex
In Oxygen 25, which was just released, we've fixed this issue.You'll be able cu customize schema proposals when creating a new framework without a base. I hope it helps in the future!
Best regards,
Alex
Return to “SDK-API, Frameworks - Document Types”
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