Hello To Every One
I have transformed xml document using servlet now i need to know how can i transform xml document using jstl. I have found this code very often but it doesn't work with a relative or absolute url. I need to pass parameters dynamically.
<c:import var="xml" url="<%=xmlFile%>" />
<c:import var="xslt" url="<%=xsltFile%>" />
<x:transform xml="${xml}" xslt="${xslt}" />
In this code I have to pass xmlFile and xsltFile parameter dynamically and i want to make it as session variables. When i put relative url in <c: import > tag it works fine but for absolute url it does not work. Although I doesnot want to pass absolute url but relative ones, but how can i achieve that one.
E.G.
<x:transform xml="relative url for xmlfile" xslt="relative url for xslt file" />