Subject: Re: [xsl] Urgent help required Node.getLocalName() From: "Ranjan K. Baisak" <ranjanbaisak@xxxxxxxxx> Date: Thu, 26 Aug 2004 10:51:55 -0700 (PDT) |
Josh, Thanks a lot for your help. regards, Ranjan --- Josh Canfield <joshcanfield@xxxxxxxxx> wrote: > Right, still not an XSL question... even though you > eventually use > XSL. You'll need to consult either the Xerces list, > or the Xerces > documentation to find out what you are supposed to > do. > > I tried a little google action just to see if I > could find a possible > answer to your question, so I queried "getlocalname > null", here is a > link to the results page: > > http://www.google.com/search?hl=en&ie=UTF-8&q=getlocalname+null > > amazingly (no joke, with that query I was amazed) > the first hit > (http://www.mail-archive.com/cocoon-dev@xxxxxxxxxxxxxx/msg21176.html) > had this code: > > path[startIndex].equals(item.getLocalName()!=null?item.getLocalName():item.getNodeName()) > > which suggests that null is an expected return value > from > getLocalName(), and thus you should fall back to > getNodeName(). > > This is still not an XSL question, so if this > doesn't help please sign > up for the Xerces mailing list. > > Josh > > On Thu, 26 Aug 2004 10:04:45 -0700 (PDT), Ranjan K. > Baisak > <ranjanbaisak@xxxxxxxxx> wrote: > > Hello Josh, > > I think I missed to mentioned the real > > problem. It very much to do with XSLT. My > stylesheet > > required some local namespace and if it is null > then > > it will throw error. So before doing > transformation I > > am manipulating DOM object using Xerces api. > During > > the manipuation I am getting the localname null so > I > > need to set it some value, even if " ". As the > > document is very large and deals with some > sensitive > > data so I would rather make it " "[space] or "No" > > which can make my stylesheet to work perfectly. > > Is that clear? > > > > regards, > > Ranjan > > > > > > --- Josh Canfield <joshcanfield@xxxxxxxxx> wrote: > > > > > This is not the right place to ask that question > as > > > it has nothing to > > > do with XSL. You also haven't said anything > about > > > what language or api > > > you are using, but you might find that there is > > > another method that > > > will give you the name of the node, perhaps > > > getNodeName(). > > > > > > On Thu, 26 Aug 2004 09:10:14 -0700 (PDT), Ranjan > K. > > > Baisak > > > <ranjanbaisak@xxxxxxxxx> wrote: > > > > Hello List, > > > > I need urgent help regarding > > > getLocalName() > > > > of Node. getLocalName() returns me null. I > need > > > this > > > > method to return me not a null value. Is there > any > > > way > > > > I cann change the local name so that I can get > not > > > > null. I am manipulating a large document. > > > > This is an urgent help. > > > > > > > > regards, > > > > Ranjan > > > > > > > > _______________________________ > > > > Do you Yahoo!? > > > > Win 1 of 4,000 free domain names from Yahoo! > Enter > > > now. > > > > http://promotions.yahoo.com/goldrush > > > > > > > > > > > > __________________________________ > > Do you Yahoo!? > > Y! Messenger - Communicate in real time. Download > now. > > http://messenger.yahoo.com > > __________________________________ Do you Yahoo!? Read only the mail you want - Yahoo! Mail SpamGuard. http://promotions.yahoo.com/new_mail
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Urgent help required Node, Josh Canfield | Thread | Re: [xsl] Urgent help required Node, David Carlisle |
Re: [xsl] Dynamic XPath expression , Josh Canfield | Date | RE: [xsl] How to calculate rowspan?, anton |
Month |