HTML5 (OT 2.5.2) restricting Nav output to a single chapter
Posted: Tue Jan 16, 2018 11:11 pm
I'm extending the html5 transform from the OT 2.5.2 and I'm having trouble figuring out how to restrict the output of the full navigation to only the current chapter.
I know that this is done by extending the org.dita.html5\xsl\nav.xsl file, but I can't figure out how to direct the xpath to select the current chapter and not everything in the book. I'm expecting to find a place where I can specify something like,, for example for chapter 2.
I want to produce output for the entire bookmap, but have the navigation show for only the current chapter for each topic output.
Can someone help with this?
Thanks,
Rick
I know that this is done by extending the org.dita.html5\xsl\nav.xsl file, but I can't figure out how to direct the xpath to select the current chapter and not everything in the book. I'm expecting to find a place where I can specify something like,
Code: Select all
ancestor::chapter[position()=2]
I want to produce output for the entire bookmap, but have the navigation show for only the current chapter for each topic output.
Can someone help with this?
Thanks,
Rick