Re: p.wrap and attributes

Yes, I’m afraid you need another p:add-attribute step. Or use XSLT for the whole thing in one go…

On 09.01.2025 15:26, denis.maier@unibe.ch wrote:
> Thanks, this worked:
> 
> <p:wrap match="xhtml:p[@class='reflist-item']" wrapper="Q{{http://www.w3.org/1999/xhtml}}div" group-adjacent="@class"/>
> 
> But now I also need to add an attribute to the div. Is that possible in one go using @wrapper? Or do I have to use another step for this? (The problem here is that matching on all divs wouldn't work.)
> 

Received on Thursday, 9 January 2025 14:30:08 UTC