Urgent! Tranformation Error!
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Senthil_Kumar
Posted On:   Sunday, August 11, 2002 12:39 AM

Dear Friends I'm getting Simple error in my xsl file... i'm getting that from xsl:stylesheet tag Error is : javax.xml.transform.TransformerConfigurationException: javax.xml.transform.Trans formerException: javax.xml.transform.TransformerException: stylesheet requires a ttribute: version my code is: <?xml version="1.0" encoding="UTF-8"?> Hai i'he include the version attribute but it's telling error like this .. when i runthe java program.. I'm using JAXP for transformation my java code is TransformerFactory factory=TransformerFa   More>>

Dear Friends

I'm getting Simple error in my xsl file...

i'm getting that from xsl:stylesheet tag

Error is :

javax.xml.transform.TransformerConfigurationException: javax.xml.transform.Trans
formerException: javax.xml.transform.TransformerException: stylesheet requires a
ttribute: version


my code is:


<?xml version="1.0" encoding="UTF-8"?>





Hai





i'he include the version attribute but it's telling error like this .. when i runthe java program..

I'm using JAXP for transformation


my java code is

TransformerFactory factory=TransformerFactory.newInstance();

StreamSource xmlFile=new StreamSource(args[0]);

StreamSource stylesheet=new StreamSource(args[1]);

StreamResult htmlFile=new StreamResult(new FileOutputStream(args[2]));

Transformer transformer = factory.newTransformer(stylesheet);

transformer.transform(xmlFile,htmlFile);


please help me ASAP


thank you in advance

senthil kumar

   <<Less

Re: Urgent! Tranformation Error!

Posted By:   Ni_zhen  
Posted On:   Monday, August 12, 2002 11:16 PM

error at xmlns:xsl=="http://www.w3c.org/1999/XSL/Transform"


replace the "c" and declare like this:

w3.org/1999/XSL/Transform">

About | Sitemap | Contact