[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Getting name of and element
u can get the name of the element with the name() function, apologies if u know this already. cheers, jim ----- Original Message ----- From: "Ragulf Pickaxe" <jawxml@xxxxxxxxxxx> To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx> Sent: Friday, November 16, 2001 10:53 AM Subject: Getting name of and element > Well, I now have a different problem, being that I don't get the expected > attribute at all (see mails about getting attribute from root-node). Is > there a way for me to get the _name_ of the root-element? > > That is, I need the name of the node, not what it contains: > XML: > .. > <TopmostNodeWithANameThatIDoNotKnow>Has not the attribute that I am trying > to extract</TopmostNodeWithANameThatIDoNotKnow> > .. > > I want the name so that I can see where things goes wrong - I expect that we > try to put the attribute into a differently named node (which does not give > an error, unfortunately). > > If I can just put the name into a variable, I can then print out the name of > the value. Incidently, how do you get the names of the attributes that a > given node has, if possible? > > Hope you can help me > (With help, I mean "Yes, this can be done and you do this...", not "No way > of doing what you want" ;-) > > Sincerly > Ragulf Pickaxe :) > > > _________________________________________________________________ > Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp > > > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|