I have a xml file and I need to convert it into a xslt file using Java as the programming language. I know that xslt is used to convert one xml file into another xml or Xhtml or html file. Please someone let me know if it is possible to generate a xslt file from xml file using java.Thanks in advance.
-
Possible duplicate of How to convert XML to HTML using XSLT in JavaKruti Patel– Kruti Patel2015-12-16 05:51:34 +00:00Commented Dec 16, 2015 at 5:51
-
1The XSLT file describes a transformation, for converting an XML document (data) into another form, usually reformatted data (XML) or HTML. How would code invent a transformation description (XSLT) from some XML data? What would you expect the invented transformation to do, i.e. if applied to some data (same?, other?), what would the expected output be? Or asked a different way: What are you trying to do?Andreas– Andreas2015-12-16 06:07:46 +00:00Commented Dec 16, 2015 at 6:07
-
An XSLT file is an XML file, and of course it is possible to convert one XML file into another using Java, if you have an algorithm that describes the conversion you want to perform. It's even easier to convert one XML file into another using XSLT.Michael Kay– Michael Kay2015-12-16 10:06:03 +00:00Commented Dec 16, 2015 at 10:06
Add a comment
|