Hello Team , I want to create a DITA "topic" from command line or from java , instead from Editor File -> New , is there any way to create like this?
Thanks,
vishwa
create a DITA "topic" from command line
-
- Posts: 33
- Joined: Fri Feb 28, 2020 4:02 pm
create a DITA "topic" from command line
Thanks,
vishwa
vishwa
Re: create a DITA "topic" from command line
Hi,
This question does not seem related to Oxygen XML Editor. Maybe from Java code or from a command line you can create a file on disk and save some XML content inside it.
Regards,
Radu
This question does not seem related to Oxygen XML Editor. Maybe from Java code or from a command line you can create a file on disk and save some XML content inside it.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 33
- Joined: Fri Feb 28, 2020 4:02 pm
Re: create a DITA "topic" from command line
Thanks Radu for your reply.
I have tried copying our custom topic template xml to create a new topic and saved
but our topic template uses custom variable
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE topic PUBLIC "-//xxxx//DTD xxx DITA Topic//EN" "xxxtopic.dtd">
<topic id="${customtoipcID}">
<title></title>
<body></body>
</topic>
the new file with copied xml is giving error
where as in the case of manually it is giving error.
Thanks,
vishwa
I have tried copying our custom topic template xml to create a new topic and saved
but our topic template uses custom variable
to create a unique topic id for a newly created topiccustomtoipcID
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE topic PUBLIC "-//xxxx//DTD xxx DITA Topic//EN" "xxxtopic.dtd">
<topic id="${customtoipcID}">
<title></title>
<body></body>
</topic>
the new file with copied xml is giving error
when we create using File new - and topic template - the uniqueID will create automaticallyAttribute value "${customtoipcID}" of type ID must be an NCName when namespaces are enabled.
where as in the case of manually it is giving error.
Thanks,
vishwa
Thanks,
vishwa
vishwa
Re: create a DITA "topic" from command line
Hi,
Yes, when you use Oxygen's File->New dialog and choose a new file template, all Oxygen editor variables from inside the file will be automatically expanded by Oxygen before opening the file contents.
Regards,
Radu
Yes, when you use Oxygen's File->New dialog and choose a new file template, all Oxygen editor variables from inside the file will be automatically expanded by Oxygen before opening the file contents.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com