Next - Previous Link enablement - Webhelp transform

Here should go questions about transforming XML with XSLT and FOP.
dkb123
Posts: 11
Joined: Sat Jul 17, 2010 7:30 pm

Next - Previous Link enablement - Webhelp transform

Post by dkb123 »

Hi there,

Typically I am able to rummage around and find what I am looking for, but this time I am stumped. I want to have the Previous/Next links working as in your own webhelp, but they are not appearing. Only Up is currently displaying.

I have searched through dita2webhelpImpl.xsl, nextPrevFullIteration.xsl and rel-links.xsl, but have not found where the problem is.
Currently I have commented out <xsl:text>Up</xsl:text> so it doesn't display on its own, so I must be in the right neighbourhood.

Any help you can provide on displaying Previous/Next would be greatly appreciated!
Thanks for your time
Radu
Posts: 9443
Joined: Fri Jul 09, 2004 5:18 pm

Re: Next - Previous Link enablement - Webhelp transform

Post by Radu »

Hi,

Actually you are looking in the wrong place :)
On the <topicref>'s defined in the DITA Map you can add this attribute collection-type="sequence" to specify how its child references are related to each other.

See more details here:
http://docs.oasis-open.org/dita/v1.1/OS ... ommon.html

You can also add this attribute globally on the root <map> element.

See more details here:

http://docs.oasis-open.org/dita/v1.2/cd ... butes.html

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
dkb123
Posts: 11
Joined: Sat Jul 17, 2010 7:30 pm

Re: Next - Previous Link enablement - Webhelp transform

Post by dkb123 »

Good stuff Radu!

That did the trick and thanks for pointing me in the right direction. Playing around with all that logic in the xsl files isn't going to do anything if I dont' have those map attributes in the first place :roll:

Looks like now I just need to change the formatting of the links where we require it and hide the redundant Parent topic/Previous topic/Next topic links at the bottom of the web page and we will have what we are looking for.

Thanks again :)
Post Reply