Parsing a Schema
This should cover W3C XML Schema, Relax NG and DTD related problems.
-
- Posts: 15
- Joined: Thu Feb 26, 2009 12:12 am
Parsing a Schema
I am about to start development on a tool that will (in Author mode) provide functionality that is similar to the 'surround with' dialog that is displayed when a user selects some text and hits ctrl+spacebar.
The form I am creating needs to display a list of valid tags that can be applied based on the location of the selected text.
Before I begin from scratch, I was wondering if there is a way for me to utilize the functionality behind the 'surround with' dialog?
If not, is there another way to get a list of valid tags other than manually parsing the schema with a package like XSOM?
Thanks!
The form I am creating needs to display a list of valid tags that can be applied based on the location of the selected text.
Before I begin from scratch, I was wondering if there is a way for me to utilize the functionality behind the 'surround with' dialog?
If not, is there another way to get a list of valid tags other than manually parsing the schema with a package like XSOM?
Thanks!
-
- Posts: 9431
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Parsing a Schema
Hi Dylan,
I will assume you are using Oxygen and the Author SDK to customize editing in the Author page.
In Oxygen 11.1 new API was added to the AuthorDocumentController to allow access to an AuthorSchemaManager object:
The AuthorSchemaManager contains a method to build an elements context like:
and then require the elements which can appear at that certain offset:
Regards,
Radu
I will assume you are using Oxygen and the Author SDK to customize editing in the Author page.
In Oxygen 11.1 new API was added to the AuthorDocumentController to allow access to an AuthorSchemaManager object:
Code: Select all
public AuthorSchemaManager getAuthorSchemaManager();
Code: Select all
WhatElementsCanGoHereContext createWhatElementsCanGoHereContext(int offset) throws BadLocationException;
Code: Select all
List<CIElement> getChildrenElements(WhatElementsCanGoHereContext context);
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