https://bz.apache.org/ooo/show_bug.cgi?id=126398
--- Comment #26 from sergiozambrano <[email protected]> --- Oh, another fix I found here http://stackoverflow.com/questions/5032347/xslt-stylesheet-replaces-self-closing-tags-with-empty-paired-tags …You could try to fool the processor by adding empty content in elements. In this case it can be done by modifying the identity template. <!-- Define a dummy variable with empty content --> <xsl:variable name="empty" select="''"/> <!-- Copy input to output, most of the time --> <xsl:template match="@* | node()"> <xsl:copy> <xsl:apply-templates select="@* | node()" /> <!-- Insert empty content into copied element --> <xsl:value-of select="$empty"/> </xsl:copy> </xsl:template> <!-- Identity template for empty elements --> <xsl:template match="*[not(node())]"> <xsl:copy> <xsl:apply-templates select="@* | node()" /> <xsl:value-of select="$empty"/> </xsl:copy> </xsl:template> -- You are receiving this mail because: You are the assignee for the issue.
