This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes XML and Related Technologies and the fly likes XSL \ XSLT Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "XSL \ XSLT" Watch "XSL \ XSLT" New topic
Author

XSL \ XSLT

Sabyasachi Chowdhury
Greenhorn

Joined: Jul 22, 2004
Posts: 7
Hi All,

I know that XSLT is the most important part of the XSL Standards. It is the part of XSL that is used to transform an XML document into another XML document, or another type of document that is recognized by a browser, like HTML and XHTML.

BUT CAN I CONVERT XML TO JAVA CLASSES USING XSL or XSLT ?

Ragards
Sabyasachi Chowdhury
Dmitry Melnik
Ranch Hand

Joined: Dec 18, 2003
Posts: 328
CAN I CONVERT XML TO JAVA CLASSES USING XSL or XSLT ?

Yes and No. The answer depends on the kind of XML you have, and the kind of Java classes you need it to be converted to.
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
There should be no technical obstacles for doing what you're describing. People are often using XSL stylesheets to transform XML into plain text files -- Java source files shouldn't be any different...


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
 
jQuery in Action, 2nd edition
 
subject: XSL \ XSLT
 
Similar Threads
xsl and xslt
What is XSLT?
Webservices pieces?
Which one is the best XML parser?
xsl variables to core set