Page 1 of 1

Add id to next element

Posted: Mon May 16, 2022 11:57 pm
by nyraghu
I am trying to transform an XML document generated by Python Docutils to HTML. Here is a fragment from the source document:
<target refid="foo"/>
<section>
...
The <target> element specifies an identifier for the next element, i.e., <section>. So I want something like
<section id="foo">
in the HTML output. I am unable to figure out how to attach an attribute to the next element while processing <target>. Would appreciate any help. Thanks.

Re: Add id to next element

Posted: Thu May 19, 2022 6:39 am
by Radu
Hi,

This is a forum for Oxygen XML Editor related issues, maybe you can ask around on stack overflow or on a Python related forum.

Regards,
Radu

Re: Add id to next element

Posted: Thu May 19, 2022 1:43 pm
by nyraghu
Ok, thanks.