Sorry, forgot to include the list in my reply to Janice.

Nick

From: Wood Nick
Sent: 05 January 2016 15:13
To: 'Janice Manwiller' <[email protected]>
Subject: RE: [docbook-apps] Question on adjusting IDs for reused content

Janice,

Is custom-docbook.xsl your fo customisation layer, if so, you probably have a 
customised common.xsl stylesheet above this, and that is where the object.id 
customisation should go.

Regards

Nick

From: Janice Manwiller [mailto:[email protected]]
Sent: 28 December 2015 21:05
To: [email protected]<mailto:[email protected]>
Subject: [docbook-apps] Question on adjusting IDs for reused content

I've been working on reusing content in the doc set I work on. The guides are 
in a single WebHelp.

- Using DocBook 5
- Output generated using the Maven docbkx plugin

As pointed out in the DocBook XSL guide, if you reuse content that has an 
identifier, then in the WebHelp output, the TOC generates the correct links. 
However, because those links all point to the same file, when you click any of 
those TOC links, the TOC selection bounces to the "first" instance. For 
example, you click a link in the Install Guide, and the TOC bounces to the 
entry in the Admin Guide.

To avoid the TOC "bouncing", the DocBook XSL reference included a suggested 
customization to have the generation process append numbers to subsequent 
instances:

http://www.sagehill.net/docbookxsl/DuplicateIDs.html#ModifyIdValues

I tried adding the template from this section to both custom-docbook.xsl (the 
main DocBook customization) and docbook-webhelp.xsl (the WebHelp 
customization), but it didn't have any affect in either place.

Am I putting the customization in the wrong place? Is there something else I'm 
missing?

Thanks,

Janice

Reply via email to