Prev - Next arrows for WebHelp Responsive
Post here questions and problems related to editing and publishing DITA content.
-
- Posts: 70
- Joined: Thu Mar 21, 2013 12:55 am
Prev - Next arrows for WebHelp Responsive
I would like to have Prev - Next arrows for all topics in the HTML generated by WebHelp Responsive. I see that they can be implemented using collection-type="sequence" but this isn't sufficient. What needs to be done to implement this?
-
- Posts: 404
- Joined: Thu Aug 21, 2003 11:36 am
- Location: Craiova
- Contact:
Re: Prev - Next arrows for WebHelp Responsive
Post by radu_pisoi »
Hi,
Did you try to set collection-type="sequence" on the root map?
Are the links between topics generated as you expected in this case?
Did you try to set collection-type="sequence" on the root map?
Are the links between topics generated as you expected in this case?
Radu Pisoi
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
-
- Posts: 70
- Joined: Thu Mar 21, 2013 12:55 am
Re: Prev - Next arrows for WebHelp Responsive
Hi Radu,
After trying what you suggested, I discovered that we would need to set the collection type on numerous topics. This would be an awful lot of manual work. Here's what I mean:
Top-level ditamap:
In a sub-level ditamap:
Is there some way to do this without all the manual labor?
Thanks,
Paul
After trying what you suggested, I discovered that we would need to set the collection type on numerous topics. This would be an awful lot of manual work. Here's what I mean:
Top-level ditamap:
Code: Select all
<map collection-type="sequence">
<title>Upgrade Guide</title>
<topicref href="upgrade/upgradeAbout.dita" keys="upgradeAbout"/>
<topicref href="upgrade/dse/upgrdAnyVersion.dita" keys="upgrdAnyVersion"/>
<mapref href="upgrade/dse/upgradeDSE.ditamap" format="ditamap"/>
...
Code: Select all
<map collection-type="sequence">
<title>Upgrading DataStax Enterprise</title>
<topicref href="upgrdDSEUpgrading_g.dita" keys="upgrdDSEUpgrading_g" collection-type="sequence">
<topicref href="upgDSEplanning.dita" keys="upgDSEplanning"/>
...
</topicref>
<topicref href="upgDSE32.dita" keys="upgDSE32" collection-type="sequence">
<topicref href="upgradeFrom3_0.dita" keys="upgradeFrom3_0"/>
...
<topicref href="upgradeRollbackDSETarball.dita" keys="upgradeRollbackDSETarball"/>
</topicref>
...
Thanks,
Paul
-
- Posts: 404
- Joined: Thu Aug 21, 2003 11:36 am
- Location: Craiova
- Contact:
Re: Prev - Next arrows for WebHelp Responsive
Post by radu_pisoi »
Hi,
To set the collection-type attribute on the empty topicref elements you can use the Add/Change attribute operation.
When you specify the parent element, you can use the next XPath expression: topicref[count(*) > 0]. For attribute name and value use collection-type and sequence. As operation mode you can use Add the attribute in the parent elements when it is missing.
When you have to choose a scope please make sure you select the Current DITA map hierarchy.
Yes, you can modify the files from a DITA map hierarchy by using the XML Refactoring tool.pault wrote:Is there some way to do this without all the manual labor?
To set the collection-type attribute on the empty topicref elements you can use the Add/Change attribute operation.
When you specify the parent element, you can use the next XPath expression: topicref[count(*) > 0]. For attribute name and value use collection-type and sequence. As operation mode you can use Add the attribute in the parent elements when it is missing.
When you have to choose a scope please make sure you select the Current DITA map hierarchy.
Radu Pisoi
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
-
- Posts: 70
- Joined: Thu Mar 21, 2013 12:55 am
Re: Prev - Next arrows for WebHelp Responsive
Hi Radu,
Our dev process was interrupted by a release. Although your suggestion works, it still involves a lot of manual work because many documents. I made a stab at modifying a template in maplinkNextPrevFullInteration.xsl, which works. By removing *[@collection-type='sequence']/ from line10 I can simply set the collection type to sequence on the root map and Prev Next arrows appear on every topic.
However, the problem is that if I create a plugin to do this, it's overridden by the template in maplinkNextPrevFullInteration.xsl. How do you override templates in the com.oxygenxml.webhelp plugin? I tried setting the priority but that didn't work.
I am using the latest build from 27 June.
Our dev process was interrupted by a release. Although your suggestion works, it still involves a lot of manual work because many documents. I made a stab at modifying a template in maplinkNextPrevFullInteration.xsl, which works. By removing *[@collection-type='sequence']/ from line10
Code: Select all
<xsl:template match="*[@collection-type='sequence']/*[contains(@class, ' map/topicref ')]
However, the problem is that if I create a plugin to do this, it's overridden by the template in maplinkNextPrevFullInteration.xsl. How do you override templates in the com.oxygenxml.webhelp plugin? I tried setting the priority but that didn't work.
I am using the latest build from 27 June.
-
- Posts: 404
- Joined: Thu Aug 21, 2003 11:36 am
- Location: Craiova
- Contact:
Re: Prev - Next arrows for WebHelp Responsive
Post by radu_pisoi »
Hi,
Unfortunately, the Webhelp plugin does not support any XSLT extension point that allows you to import customization XSLT. We already have registered this issue and I will add your vote for it.
A workaround is to use the 'dita.xsl.maplink' extension point to point to your customization XSL.
So, you can open:
and add your customization XSLT after the extension that points to 'maplinkNextPrevFullIteration.xsl'. Something like:
Unfortunately, the Webhelp plugin does not support any XSLT extension point that allows you to import customization XSLT. We already have registered this issue and I will add your vote for it.
A workaround is to use the 'dita.xsl.maplink' extension point to point to your customization XSL.
So, you can open:
Code: Select all
{oXygenInstallDir}/frameworks/dita/DITA-OT2.x/plugins/com.oxygenxml.webhelp/plugin_commons.xml
Code: Select all
<feature extension="dita.xsl.maplink" value="xsl/dita/maplinkNextPrevFullIteration.xsl" type="file"/>
<feature extension="dita.xsl.maplink" value="xsl/dita/extension.xsl" type="file"/>
Radu Pisoi
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
-
- Posts: 404
- Joined: Thu Aug 21, 2003 11:36 am
- Location: Craiova
- Contact:
Re: Prev - Next arrows for WebHelp Responsive
Post by radu_pisoi »
Hi,
We released Oxygen WebHelp 19.1 a couple of days ago and I am pleased to inform you that the possibility to set the default value for the DITA Map collection-type attribute to sequence. This option is helpful if you want to have 'Next' and 'Previous' navigational buttons generated for all HTML pages.
You can do this by using the webhelp.default.collection.type.sequence parameter.
Please note that this option is available only for WebHelp Responsive and for DITA-OT 2.x.
We released Oxygen WebHelp 19.1 a couple of days ago and I am pleased to inform you that the possibility to set the default value for the DITA Map collection-type attribute to sequence. This option is helpful if you want to have 'Next' and 'Previous' navigational buttons generated for all HTML pages.
You can do this by using the webhelp.default.collection.type.sequence parameter.
Please note that this option is available only for WebHelp Responsive and for DITA-OT 2.x.
Radu Pisoi
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
Return to “DITA (Editing and Publishing DITA Content)”
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