[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: variable ending with ^@

Subject: Re: variable ending with ^@
From: himanshu padmanabhi <himanshu.padmanabhi@xxxxxxxxx>
Date: Tue, 24 Feb 2009 17:29:15 +0530
Re:  variable ending with ^@
Thank you for all that help

Yes,problem is in the later part.

abc.cgi- > abc.xsl -> abc.cgi

Still finding the exact point where they get inserted.I will tell you
if I fail to.

btw,in above flow,in my 'xsl file',I am getting values filled in the
combo box from 'logic file'.
I want to choose value selected by user from combo either my 'logic
file' or 'abc.cgi'.
How can I get it?Values should be there in $in hash of 'logic file',I think.


On Tue, Feb 24, 2009 at 11:25 AM, Deborah Pickett
<debbiep-list-xsl@xxxxxxxxxx> wrote:
>
> Hi himanshu,
>
> It might help for you to try to find whether the problem is with the first
> stage:
>  CGI -> Perl -> libxslt -> HTML
> or the second stage after the user presses the submit button:
>  CGI -> Perl logic_file.cgi -> HTTP redirect -> CGI -> Perl abc.cgi
>
> You can do that easily enough by going "View Source" on the HTML that the
> libxslt is producing.  Is there trailing garbage on the variable?  I
> suspect not.
>
> (If my suspicion is correct, it makes the rest of this reply off-topic for
> an XSL list, since there isn't any XSLT in the second stage.  But if you
> just want to hack together something that works, then I will summon my
> Perl-fu for this advice:)
>
> If you want to trim a trailing ASCII NUL byte from a Perl string, chomp
> won't work.  chop should work, but it's usually too aggressive and will
> chop anything.  Try instead:
>  $variable =~ s/\0$//;
>
> But I believe that you have probably removed the part of the code that is
> introducing the trailing NUL in your effort to simplify the problem.  It's
> quite unlikely that it's in the XSLT part of your chain, and far more
> likely to be in the Perl code.
>
> It might also be good to look through your HTTP server's logs and see if
> the HTTP redirect URL looks right.
>



--
Regards,
Himanshu Padmanabhi

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.