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/13 18:35:51 UTC
DO NOT REPLY [Bug 6394] -
Attributes with empty values are not copied to the result tree
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
Attributes with empty values are not copied to the result tree
David_N_Bertoni@lotus.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |FIXED
Summary|XalanTransformer transform |Attributes with empty values
|empty element attribute into|are not copied to the result
|nothing |tree
------- Additional Comments From David_N_Bertoni@lotus.com 2002-02-13 17:35 -------
This is an old bug which I thought was fixed long ago. Thanks for the report!
Fixed in XSLT/XSLTEngineImpl.cpp;1.132. Here's the diff, if you want to patch
your local copy:
cvs diff XSLTEngineImpl.cpp (in directory V:\xml-xalan\c\src\XSLT\)
Index: XSLTEngineImpl.cpp
===================================================================
RCS file: /home/cvs/xml-xalan/c/src/XSLT/XSLTEngineImpl.cpp,v
retrieving revision 1.131
diff -r1.131 XSLTEngineImpl.cpp
2901,2905c2901
< // TODO: Find out about empty attribute template expression handling.
< if(0 != length(attrValue))
< {
< addResultAttribute(attrList, attrName, attrValue);
< }
---
> addResultAttribute(attrList, attrName, attrValue);
*****CVS exited normally with code 1*****