Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes XML and Related Technologies and the fly likes possible to create dynamically named nodes via xslt? 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 "possible to create dynamically named nodes via xslt?" Watch "possible to create dynamically named nodes via xslt?" New topic
Author

possible to create dynamically named nodes via xslt?

Axel Janssen
Ranch Hand

Joined: Jan 08, 2001
Posts: 2164
Hi.
I have very little experience with xslt.
We can use xslt to transform one xml tree in another xml tree.
Question: Is it possible, does it make sense to create dynamically named node names?
example:
input:

(the text content of the node title shall transform to a node.)
for example:
<title>delete all childs</title>
--> <delete_all_childs>
output:
I want to display the output-xml as a swing tree. (found that as example): http://gethelp.devx.com/techtips/java_pro/10MinuteSolutions/Gabhart10min03/Gabhart10min03-1.asp
you know better examples for that task?
Thanks
Axel
[ September 30, 2002: Message edited by: Axel Janssen ]
[ September 30, 2002: Message edited by: Axel Janssen ]
[ September 30, 2002: Message edited by: Axel Janssen ]
Dan Drillich
Ranch Hand

Joined: Jul 09, 2001
Posts: 1183
Please have a look at - http://p2p.wrox.com/view.asp?list=xslt&id=217418
The author Michael Kay runs the show there and man he knows this stuff!
Cheers,
Dan
[ October 01, 2002: Message edited by: Dan Drillich ]

William Butler Yeats: All life is a preparation for something that probably will never happen. Unless you make it happen.
Dan Drillich
Ranch Hand

Joined: Jul 09, 2001
Posts: 1183
I have here some sort of a start -

Cheers,
Dan
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: possible to create dynamically named nodes via xslt?
 
It's not a secret anymore!