Page 1 of 1

Next - Previous Link enablement - Webhelp transform

Posted: Fri Dec 10, 2010 1:23 am
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

Re: Next - Previous Link enablement - Webhelp transform

Posted: Fri Dec 10, 2010 1:18 pm
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

Re: Next - Previous Link enablement - Webhelp transform

Posted: Fri Dec 10, 2010 6:24 pm
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 :)