Add id to next element

Here should go questions about transforming XML with XSLT and FOP.
nyraghu
Posts: 5
Joined: Mon Nov 18, 2019 11:43 am

Add id to next element

Post 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.
Radu
Posts: 8010
Joined: Fri Jul 09, 2004 5:18 pm

Re: Add id to next element

Post 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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
nyraghu
Posts: 5
Joined: Mon Nov 18, 2019 11:43 am

Re: Add id to next element

Post by nyraghu »

Ok, thanks.
Post Reply