conref
Oxygen general issues.
-
- Posts: 3
- Joined: Wed Apr 01, 2015 8:14 pm
conref
Hello, is it possible to conref a task within a concept?
My concept has a section called STEPS TO PERFORM.
In that section, I would like to conref the content of a task, i.e. its short description and the step-by-step. Is it possible?
If yes, what is the best way to proceed.
Thank you
My concept has a section called STEPS TO PERFORM.
In that section, I would like to conref the content of a task, i.e. its short description and the step-by-step. Is it possible?
If yes, what is the best way to proceed.
Thank you
-
- Posts: 9436
- Joined: Fri Jul 09, 2004 5:18 pm
Re: conref
Hi Vivianne,
In my opinion according to the DITA 1.2 specs:
http://docs.oasis-open.org/dita/v1.2/os ... tml#conref
it should be possible to conref from a DITA <ol> to a <steps> element or from a li to a step element. But this does not quite work in the published output.
I added an issue for this for the DITA Open Toolkit publishing engine used by Oxygen to convert DITA to various output formats:
https://github.com/dita-ot/dita-ot/issues/1884
For reusing the shortdesc content you could do this:
In the DITA task wrap the entire content of the shortdesc in a ph element:
In the DITA concept you can conref to that <ph> element in a paragraph for example:
Possibly you could do the same for each step you want to reuse, surround the cmd content in a ph and reuse that ph:
Regards,
Radu
In my opinion according to the DITA 1.2 specs:
http://docs.oasis-open.org/dita/v1.2/os ... tml#conref
it should be possible to conref from a DITA <ol> to a <steps> element or from a li to a step element. But this does not quite work in the published output.
I added an issue for this for the DITA Open Toolkit publishing engine used by Oxygen to convert DITA to various output formats:
https://github.com/dita-ot/dita-ot/issues/1884
For reusing the shortdesc content you could do this:
In the DITA task wrap the entire content of the shortdesc in a ph element:
Code: Select all
<shortdesc><ph id="reusedShortDesc">THIS IS SHORT DESC</ph></shortdesc>
Code: Select all
<p><ph conref="task.dita#taskID/reusedShortDesc"/></p>
Code: Select all
<step>
<cmd><ph id="reusedShortDesc">CMD CONTENT. </ph></cmd>
</step>
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 3
- Joined: Wed Apr 01, 2015 8:14 pm
Re: conref
Hello,
In a generic topic type <topic>, I am able to use these elements: title, description or abstract, prolog, body, related links, and nested topics.
If in the generic topic type I was using a nested topic where I would put task-related content (step-by-step process), is there any way to "wrap" the task content in order to be able to use it in a task topic?
Thanks
Viviane
In a generic topic type <topic>, I am able to use these elements: title, description or abstract, prolog, body, related links, and nested topics.
If in the generic topic type I was using a nested topic where I would put task-related content (step-by-step process), is there any way to "wrap" the task content in order to be able to use it in a task topic?
Thanks
Viviane
-
- Posts: 9436
- Joined: Fri Jul 09, 2004 5:18 pm
Re: conref
Hi Viviane,
As I previously said, you cannot reuse a part of a task inside a topic if those conreffed elements are not allowed in a topic.
A DITA composite allows you to nest a task inside a topic:
but DITA composites are quite an old concept and not quite recommended nowadays.
Also if you want to reuse an entire DITA task file you can just link it from the DITA Map as a child topicref to the topic.
Maybe an alternative for you would be that instead of using a DITA task model for the task content, just use the regular DITA topic model and use <ol>'s instead of steps.
Regards,
Radu
As I previously said, you cannot reuse a part of a task inside a topic if those conreffed elements are not allowed in a topic.
A DITA composite allows you to nest a task inside a topic:
Code: Select all
<!DOCTYPE dita PUBLIC "-//OASIS//DTD DITA Composite//EN" "ditabase.dtd">
<dita>
<topic id="topic_b1m_n34_sr">
<title>Topic title</title>
<body>
<p/>
</body>
<task id="task">
<title>Task title</title>
</task>
</topic>
</dita>
Also if you want to reuse an entire DITA task file you can just link it from the DITA Map as a child topicref to the topic.
Maybe an alternative for you would be that instead of using a DITA task model for the task content, just use the regular DITA topic model and use <ol>'s instead of steps.
Regards,
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