Hi,
At the last DITA Europe Conference, I discussed xquery indentation in Oxygen with Radu. As there are no universal rules, he proposed I send my suggestions. So here are some suggestions that would truly help me.
If they don't get unanimous approval, I would suggest that some of them become configurable in preferences.
I attached an xml file that is indented as I prefer (so please do open it without automatic indent). I included comments that indicate the proposed changes. When you apply indent you can experience the issues yourself.
--