This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Getting MEAN with Mongo, Express, Angular, and Node and have Simon Holmes on-line!
See this thread for details.
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


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
Sheriff

Joined: Oct 14, 2005
Posts: 19531
    
  10

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how do i get the name of a node as my element name in XSL