Plugin Development
Oxygen general issues.
-
- Posts: 11
- Joined: Wed Jan 30, 2008 5:50 pm
Plugin Development
Hello,
i want to develop a plugin which automatically fills
out all empty ID attributes in my xml file.
I started to make document plugin but how can
i access my elements and their attributes?
Another question:
Is it possible to develop a event plugin.
For example i want to fill some attributes each
time a element with a certain name is inserted.
Thanks, Uli
i want to develop a plugin which automatically fills
out all empty ID attributes in my xml file.
I started to make document plugin but how can
i access my elements and their attributes?
Another question:
Is it possible to develop a event plugin.
For example i want to fill some attributes each
time a element with a certain name is inserted.
Thanks, Uli
-
- Posts: 4141
- Joined: Fri Mar 28, 2003 2:12 pm
Re: Plugin Development
Post by sorin_ristache »
Hello,
The API available for plugins does not give access to the elements and attributes of the XML elements. In a document plugin you have access to the contents of the document and you have to locate the elements that you want by analyzing the text of the XML document in the code of your plugin. We will consider giving access to the elements of the XML document in the API for plugins in a future version of oXygen.
If you want to fill automatically the value of an attribute when the element with that attribute is inserted in the XML document you should use fixed attribute values or default attribute values in the schema associated with your XML document, for example XML Schema.
Regards,
Sorin
The API available for plugins does not give access to the elements and attributes of the XML elements. In a document plugin you have access to the contents of the document and you have to locate the elements that you want by analyzing the text of the XML document in the code of your plugin. We will consider giving access to the elements of the XML document in the API for plugins in a future version of oXygen.
If you want to fill automatically the value of an attribute when the element with that attribute is inserted in the XML document you should use fixed attribute values or default attribute values in the schema associated with your XML document, for example XML Schema.
Regards,
Sorin
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