How to add figure caption when DNG artifact has multiple embedded images?

We have DNG requirements containing embedded images (zero or one or more). I want to generate a Word/PDF document with caption for each image. Is there any way? I referred to jazz.net blog https://jazz.net/blog/index.php/2020/04/02/using-captions-for-figures-and-tables-getting-the-most-out-of-ibm-elo-publishing/ which works perfectly if I have only 1 image in an artifact.
Any help is appreciated.
Accepted answer

In DOORS Next, you cannot use figure captions. You can use Script Expression in PUB template to add <figcaption> for each image, but PUB doesn't support <figcaption>.
Hence you can use Script Expression (div.replace) in PUB template to add alt text (based on artifact title) for each image. The use a Word macro to dynamically add caption based on the alt text. It will work.