• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

paserConfigurationException

 
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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

 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic