InsertXMLFragmentSchemaAware questions
Having trouble deploying Oxygen XML Web Author? Got a bug to report? Post it all here.
-
- Posts: 240
- Joined: Wed Jun 17, 2015 12:46 pm
InsertXMLFragmentSchemaAware questions
Hello,
I use Author web 25.1.0.0.
I've created a button to add a specific fragment at the cursor position.
Since I want the insertion of the fragment to be valid, I have several possible approaches:
- initially disable the button when insertion at the cursor will cause a validation error thanks to :
- use the insertXMLFragmentSchemaAware method to ensure that the fragment is positioned in a valid location.
My questions concern the 2nd way.
In the javadoc, for the method insertXMLFragmentSchemaAware it is specified :
Before the fragment is inserted using the insertXMLFragmentSchemaAware method, would it be possible to warn the user of the location (xpath for example) where the fragment is about to be inserted? In fact, I'd like to be able to ask the user to confirm the automatic location found by Oxygen (SchemaAwareHandlerResult schemaAwareHandlerResult) without the fragment being inserted yet.
Thank you,
Johann
I use Author web 25.1.0.0.
I've created a button to add a specific fragment at the cursor position.
Since I want the insertion of the fragment to be valid, I have several possible approaches:
- initially disable the button when insertion at the cursor will cause a validation error thanks to :
Code: Select all
authorSchemaManager.createWhatElementsCanGoHereContext(caretOffset)
My questions concern the 2nd way.
In the javadoc, for the method insertXMLFragmentSchemaAware it is specified :
However, I don't see any dialog allowing me to choose the location, the fragment is automatically inserted in a valid location. Is this normal?If the fragments insertion is not allowed, a dialog will be shown proposing one of following solutions if they apply:
Before the fragment is inserted using the insertXMLFragmentSchemaAware method, would it be possible to warn the user of the location (xpath for example) where the fragment is about to be inserted? In fact, I'd like to be able to ask the user to confirm the automatic location found by Oxygen (SchemaAwareHandlerResult schemaAwareHandlerResult) without the fragment being inserted yet.
Thank you,
Johann
-
- Posts: 515
- Joined: Wed May 20, 2009 2:40 pm
Re: InsertXMLFragmentSchemaAware questions
Hello,
Web Author automatically uses what it considers to be the best insertion solution, when there is an attempt to insert content that is not valid in a specific context. So the documentation pointed out by you is only available for Oxygen XML Editor, which can ask the user to choose from a list of proposed solutions.
You cannot configure Web Author to ask the user what solution wants to be applied, but you make some customizations in your action If you identify some cases where the insert action behavior is less than optimal. You can read more about this in our documentation:
https://www.oxygenxml.com/doc/versions/ ... zb_vsy_dlb
Best Regards,
Mihaela
Web Author automatically uses what it considers to be the best insertion solution, when there is an attempt to insert content that is not valid in a specific context. So the documentation pointed out by you is only available for Oxygen XML Editor, which can ask the user to choose from a list of proposed solutions.
You cannot configure Web Author to ask the user what solution wants to be applied, but you make some customizations in your action If you identify some cases where the insert action behavior is less than optimal. You can read more about this in our documentation:
https://www.oxygenxml.com/doc/versions/ ... zb_vsy_dlb
Best Regards,
Mihaela
Mihaela Calotescu
http://www.oxygenxml.com
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