How to set/generate ant.dtd with ant-contrib inside Oxygen
Questions about XML that are not covered by the other forums should go here.
-
- Posts: 1
- Joined: Fri Feb 16, 2007 12:19 pm
How to set/generate ant.dtd with ant-contrib inside Oxygen
Post by rembiszm@gmail.com »
Hi,
I am using ant inside Oxygen editor.
Recently I have added the new library ant-contrib and all a new tasks from that library are not recognized by Oxygen.
For example xmlns:ac="antlib:net.sf.antcontrib" in project tag,
<ac:for param="dir">
<ac:sequential>
<ac:if>
etc.
I am aware that ant.dtd under Oxygen structure is responsible for checking but my question is: - is it possible to add new tasks to .dtd file automatically and void manual modification in this file?
Thanks in advance,
MR
I am using ant inside Oxygen editor.
Recently I have added the new library ant-contrib and all a new tasks from that library are not recognized by Oxygen.
For example xmlns:ac="antlib:net.sf.antcontrib" in project tag,
<ac:for param="dir">
<ac:sequential>
<ac:if>
etc.
I am aware that ant.dtd under Oxygen structure is responsible for checking but my question is: - is it possible to add new tasks to .dtd file automatically and void manual modification in this file?
Thanks in advance,
MR
-
- Posts: 4141
- Joined: Fri Mar 28, 2003 2:12 pm
Post by sorin_ristache »
Hello,
No, new tasks are not added to ant.dtd automatically. You can edit the ant.dtd file specified in the default association for the root element called "project" in Options -> Preferences -> Editor -> Default Schema Association or you can replace this default association with a new one that you define for Ant build files. Other option is to associate your ant.dtd that defines the new tasks with the XML build file by inserting a DOCTYPE declaration in the XML file using the Associate Schema action but you have to do this for every build file. So I think the default association is better because works for all XML files that match the conditions of the association (namespace, root local name, file name).
Regards,
Sorin
No, new tasks are not added to ant.dtd automatically. You can edit the ant.dtd file specified in the default association for the root element called "project" in Options -> Preferences -> Editor -> Default Schema Association or you can replace this default association with a new one that you define for Ant build files. Other option is to associate your ant.dtd that defines the new tasks with the XML build file by inserting a DOCTYPE declaration in the XML file using the Associate Schema action but you have to do this for every build file. So I think the default association is better because works for all XML files that match the conditions of the association (namespace, root local name, file name).
Regards,
Sorin
Return to “General XML Questions”
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