Re: Removing xml element and strip extra space

2014-07-22 Thread Monte Milanuk
On 2014-07-22, varun bhatnagar wrote: > I just want to scrape out > But the way I have written my xsl file it is removing it but it is also > leaving a blank space there. I want my output to look like this: This is the part where a certain amount of example code showing what you're doing would p

Re: Removing xml element and strip extra space

2014-07-22 Thread varun bhatnagar
Hi Tim, Thanks for replying. No that is not the output I am looking for. I just want to scrape out But the way I have written my xsl file it is removing it but it is also leaving a blank space there. I want my output to look like this: ** ** But in actual it is showing like this:

Re: Removing xml element and strip extra space

2014-07-22 Thread Tim
On Tuesday, July 22, 2014 8:53:35 AM UTC-4, varun bhatnagar wrote: > Hi, > Thank you so much for the suggestion. > I tried using the rstrip() function but that did not work. Still getting a > blank space between  and  as mentioned in the above > output xml file: >                                

Re: Removing xml element and strip extra space

2014-07-22 Thread varun bhatnagar
Hi, Thank you so much for the suggestion. I tried using the rstrip() function but that did not work. Still getting a blank space between ** and * *as mentioned in the above output xml file: ** * * Is there any other way through which this can be achieved? Can't this be handled by xslt itself i

Re: Removing xml element and strip extra space

2014-07-22 Thread Monte Milanuk
On 2014-07-22, varun bhatnagar wrote: > I want to strip the space between ** and ** > Can anyone suggest a way out to do that? Look at str.rstrip() - by default it removes trailing whitespace including carriage returns. -- https://mail.python.org/mailman/listinfo/python-list