Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Facing org .apache .xml. dtm. DTMException Not supported

Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to use XSLT Compiler in my JSP for transformation.
I am getting the following exception

javax.xml.transform.TransformerException: javax.xml.transform.TransformerException: org.apache.xml.dtm.DTMException: Not supported: org.apache.xalan.xsltc.trax.XSLTCSource@17ab6cd
at org.apache.xalan.xsltc.trax.TransformerImpl.transform(
at org.apache.xalan.xsltc.trax.TransformerImpl.transform(

Here is the Code snippet I have written

String strXMLMerged is the XML file

ByteArrayInputStream bais = new ByteArrayInputStream(strXMLMerged.getBytes());
String key = "javax.xml.transform.TransformerFactory";
String value = "org.apache.xalan.xsltc.trax.TransformerFactoryImpl";
Properties props = System.getProperties();
props.put(key, value);
Transformer transformer = null;
TransformerFactory transformerfactory =
XSLTCSource source = new XSLTCSource(new StreamSource(bais));
transformer = transformerfactory.newTransformer
(new StreamSource(new File
transformer.transform(source, new StreamResult(out));

When i run this in my JSP, I am getting
org.apache.xml.dtm.DTMException: Not supported

Can anyone suggest what could be the issue and how to resolve it??
Listen. That's my theme music. That's how I know I'm a super hero. That, and this tiny ad told me:
Thread Boost feature
    Bookmark Topic Watch Topic
  • New Topic