Are you invoking this from the command line (ie org.apache.xalan.xslt.Process)? If so, what does your command line look like? If you are doing your own processing, however, the problem may be that you have not set namespace awareness on in your XML parser. Gary Daya Sharma wrote: > > Hi All > > Can somebody please tell why am I getting this error my XSL has > > <?xml version='1.0' encoding="UTF-8"?> > <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" > version="1.0"> > > as the first two lines... > > but why does Xalan 2.0 throw this exception: > javax.xml.transform.TransformerException: stylesheet requires attribute: > version at > org.apache.xalan.processor.StylesheetHandler.error(StylesheetHandler.java:85 > 4) > > Any help would be appreciated. > > thanx > > -daya sharma > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > Life is not what happens to you, > But how you react to what happens to you. > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
