There are a few points that are needed before somebody can start helping you
The following namespace is the one from the NED CLI for ios-xr:
So it looks like you are using the CLI NED - can you confirm this?
The first code snippet shared looks to be a service model where you have a grouping to activate or deactivate auto-negotiation. You mention that it works fine for IOS/IOS-XE - which seems to indicate that you have some service template or code that is used to map the service configuration to the device configuration - is it the case? In that case have you implemented similar logic in your template/code for IOS-XR devices? Maybe sharing what you have been trying, what works for ios and does not for iosxr (if it is ok) could help the community helping you.
If I had to guess I would say that what you are looking for in your template here is to use the tags (refer to NSO documenation on tags template in nso_development guide the "Templates / Basic Principles / Template tag operations" section ) and replace the XR part in your template with:
We are excited to announce that our call for speakers for our upcoming Developer Days events is open!
Automation is a journey in itself and no two journeys are alike. Planning and preparation are a must for any major project. Having an open mind to u...
Learning NSO hasn't been easier!
Although navigating the offerings may need some guidance.
You basically have two options, one instructor-led and one self-paced using free resources on DevNet. We of course recommend using both options.