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

Re: Urgent help required Node.getLocalName()

Subject: Re: Urgent help required Node.getLocalName()
From: "Ranjan K. Baisak" <ranjanbaisak@xxxxxxxxx>
Date: Thu, 26 Aug 2004 10:51:55 -0700 (PDT)
getlocalname
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

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.