Your example is quite unclear, do you mean that initially the XML element is collapsed like <x/>
and then in the output file it is expanded like <x></x>
Usually from what I tried most XSLT processors will output the empty tag in collapsed format. I tried with Saxon 6 and Saxon 9 and they both generated the collapsed form of the element.
You can try for example applying a copy XSLT stylesheet to the XML document:
Code: Select all
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="node() | @*">
<xsl:apply-templates select="node() | @*"/>
There is no setting in Oxygen to control this when transforming.
What you can do is to open the result XML document in Oxygen and use the "Format and Indent" toolbar action on it. There is a format and indent setting which can be toggled to instruct Oxygen what form to use for empty elements, by default it collapses them.