msmid / markdown2docbook

Conversion tool for transforming markdown text files to DocBook/HTML documents. Project is based on XSLT 2.0 technology.
MIT License
21 stars 6 forks source link

Allow configuring an xml:id attribute for root-elements or header-elements #59

Open rkottmann opened 1 year ago

rkottmann commented 1 year ago

Hi,

using this nice converter, I figured that it would be helpful to add a paramter which allows to set an xml:id attribute in the resulting docbook.

E.g. then someting like md2db:convert(fn:unparsed-text(fn:resolve-uri($filename, $baseuri)), '', 'chapter', $ID)

with $ID=my.super.id

would result in

<chapter xml:id="my.super.id">