[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: transform @xml:id to @id in HTML
Iâm still struggling with this question, so hopefully this message is read by one of the DocBook masterminds. ;-)
Iâm wondering if itâs possible to include all the xml:idâs we add in our DocBook source document in the output HTML als idâs.
The parameter generate.id.attributes handles this for the main sections, but I would like to add all the idâs. Is this possible?
Thanks in advance!
Michel van den Burg
digital publishing | Uitgeverij Coutinho
06 - 10 75 75 14
Thanks for your suggestion! I igree that one must try to avoid âhackingâ if possible. Adding IDâs (from the source document) to more elements than the main sections seems like a very common wish, though. We would like to add internal links to lots of places, thatâs why we want to transform xml:id to id.
Does anyone else know if the 1.0-stylesheets have a setting to transfer all xml:idâs to the output? Or is Peterâs suggestion the way to go?
Van: Peter Desjardins <email@example.com>
I would consider customizing the d:title template and setting the output id value to whatever the input xml:id value is.
My idea feels like a hack though. Maybe someone else has a better solution?
On Wed, Mar 3, 2021 at 7:17 AM Michel van den Burg <firstname.lastname@example.org> wrote: