wood burning stoves 2.0*
The moose likes XML and Related Technologies and the fly likes how do i get the name of a node as my element name in XSL Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "how do i get the name of a node as my element name in XSL" Watch "how do i get the name of a node as my element name in XSL" New topic
Author

how do i get the name of a node as my element name in XSL

shoeb sayyed
Ranch Hand

Joined: Mar 14, 2010
Posts: 48


In this example I want the element name to be same as the child node I get. Can you please tell me how is that possible using XSLT


Thanks,
Shoeb
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

The XPath function which gives you the name of the context node, if it's an element, is

You might find it easier to get a book about XSLT, rather than waiting for random people on the Internet to tell you things like this. Reserve your forum posts for programming problems.
 
Consider Paul's rocket mass heater.
 
subject: how do i get the name of a node as my element name in XSL