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 2003/12/14 02:15:06 UTC

DO NOT REPLY [Bug 25506] New: - null stylesheet parameters bring in garbage using XSLTC

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=25506>.
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=25506

null stylesheet parameters bring in garbage using XSLTC

           Summary: null stylesheet parameters bring in garbage using XSLTC
           Product: XalanJ2
           Version: CurrentCVS
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Xalan-Xsltc
        AssignedTo: xalan-dev@xml.apache.org
        ReportedBy: achalupa@hotmail.com
                CC: achalupa@hotmail.com


Using Sun JRE 1.4.2-b28 and Xalan 2.5.2

Reproducible using sample program shipped with Xalan download: 
UseStylesheetParam.  Adjust program to use XSLTC and adjust the setParameter 
line to read:
transformer.setParameter("param1", null);

Output on XSLTC is:
<?xml version="1.0" encoding="UTF-8"?>
<out>Hello</out>

Output using standard processor is:
<?xml version="1.0" encoding="UTF-8"?>
<out></out>

In this small example it appears to be bringing in the "Hello" from the source 
XML.  In larger documents I have seen other odd garbage.