How to call an XSL template from java code?
Please note that I do not need to know how to convert xml documentemnt using XSL in Java.
What I need is that I have an XSLT document containing a template that does something, for example:
<xsl:template match="/">
<html>
<body>
<h2>My CD Collection</h2>
<table border="1">
<tr bgcolor="#9acd32">
<th>Title</th>
<th>Artist</th>
</tr>
<tr>
<td>.</td>
<td>.</td>
</tr>
</table>
</body>
</html>
</xsl:template>
Then I need this template to call from java code. How?
Thanks to all the guys, I did it, see
http://m-hewedy.blogspot.com/2009/12/how-to-call-xslt-template-from-your.html
source
share