Hello
i am having following
jsp page in which i am taking a parameter
from user form and putting into the stylesheet and applying
that style sheet to xml
<%
String sort_val = request.getParameter("SORT_ON");
System.out.println("TO BE SORTED ON PARAM ID :" + sort_val);
String file_path = "C:\\ptc\\Windchill\\codebase\\rs\\jsp\\jsp";
File xmlfile = new File(file_path.concat("\\temp.xml"));
File stylesheet = new File(file_path.concat("\\rsdstylesheet.xsl"));
FileInputStream in = new FileInputStream(xmlfile);
FileInputStream xslfile = new FileInputStream(stylesheet);
TransformerFactory tFactory = TransformerFactory.newInstance();
Transformer transformer = null;
try{
transformer = tFactory.newTransformer(new StreamSource(file_path.concat("\\rsdstylesheet.xsl")));
}catch(Exception e){
e.printStackTrace();
}
//transformer.setParameter("param1","{http://www.w3.org/1999/XSL/Transform}stylesheet",sort_val );
transformer.setParameter("param1",sort_val);
XSLTProcessor processor = XSLTProcessorFactory.getProcessor();
try{
processor.process(new XSLTInputSource(in),new XSLTInputSource(xslfile),new XSLTResultTarget(out));
}catch (Exception e)
{
System.out.println("******************************************");
e.printStackTrace();
}
%>
i am getting javax.xml.parsers.ParserConfigurationException: Namespace not suupported by SAXParsers
please reply will be highly appreciated.
regards
sharang