You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by bu...@apache.org on 2002/02/12 15:25:42 UTC
DO NOT REPLY [Bug 6394] New: -
XalanTransformer transform empty element attribute into nothing
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6394>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6394
XalanTransformer transform empty element attribute into nothing
Summary: XalanTransformer transform empty element attribute into
nothing
Product: XalanC
Version: 1.3.x
Platform: PC
OS/Version: Windows NT/2K
Status: UNCONFIRMED
Severity: Blocker
Priority: Other
Component: XalanC
AssignedTo: xalan-dev@xml.apache.org
ReportedBy: emercier@openup.fr
Using XalanTransformer.transform actually into an XML file yields a correct XML
file but when the empty attributes in the resulting XML have disappeared !
************** Input file XML.xml:
<?xml version="1.0" encoding="UTF-8"?>
<MDML version="2.0">
<A
attribute1=""
attribute2=""
>
</A>
</MDML>
************** XSL file XSL.xsl:
<?xml
version='1.0'
encoding='UTF-8'
?>
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0"
>
<xsl:output method="xml"/>
<xsl:template match="/">
<xsl:copy-of select="."/>
</xsl:template>
</xsl:stylesheet>
************** Ant build file build.xml:
<project
name="XalanBug"
default="cpp.bug"
basedir="."
>
<target
name="java.nobug"
description="Reproduces the Java Xalan proper behaviour"
>
<delete file="XMLoutJava.xml"/>
<style
style="XSL.xsl"
in="XML.xml"
out="XMLoutJava.xml"
/>
</target>
<target
name="cpp.bug"
description="Reproduces the Xalan-C++ bug"
>
<delete file="XMLoutCPP.xml"/>
<exec
executable="C:\win32app\xml-xalan\c\Build\Win32\VC6
\Release\Xalan.exe"
>
<arg value="-o"/>
<arg path="XMLoutCPP.xml"/>
<arg path="XML.xml"/>
<arg path="XSL.xsl"/>
</exec>
</target>
</project>