You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by Andrei Smirnov <as...@hotjobs.com> on 2001/03/07 18:57:51 UTC

is it comforming beahviour?

is output of transformation (included at the bottom) conforming to spec?

result is:

<?xml version="1.0" encoding="UTF-8"?>
<root>
<el/>
</root>

i.e. atrribute with empty value is striped off.
strange thing is if attribute has content (space is used here) it 
shows up:

<?xml version="1.0" encoding="UTF-8"?>
<root>
<el atrr=" "/>
</root>

andrei smirnov

1.xml
-------------------------
<?xml version="1.0"?>
<root>
<el atrr=""/>
</root>
-------------------------
1.xsl
------------------------
<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:template match="root">
<xsl:copy-of select="."/>
</xsl:template>
</xsl:stylesheet>
------------------------