OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]

Subject: Re: [docbook-apps] transform title/@xml:id to title/@id in HTML

Hi, Michel!

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 <burg@coutinho.nl> wrote:
Hi everyone,

I'm using the DocBook XSL to transform DocBook XML to EPUB and HTML. I have a question about including xml:id in the output as id's.

I know that it's possible to include the xml:id of main sections in the output using generate.id.attributes. I also have xml:id's in some of my <title>-elements, and I would like to add these in my output too, like this:

<preface><title xml:id="12345">...</title></preface>

<section class="preface" title="Frontispice" epub:type="preface" id="56789">
 <div class="titlepage">
    <h1 class="title" id="12345">Frontispice</h1>

Is there a way to do this?

Thanks in advance,
Kind regards,

To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]