DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13145>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13145

 stylesheet requires attribute: version

           Summary:  stylesheet requires attribute: version
           Product: XalanJ2
           Version: 2.4Dx
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: org.apache.xalan.transformer
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


I get a transformer exception with the message as given in the summary field. 
The servlet in question is transforming an XML document based on a style sheet 
whose first 2 lines are as below:

<?xml version="1.0" ?>
<xsl:stylesheet   version="1.0"  
xmlns:xsl="http://www.w3.org/1999/xsl/Transform/";    
xmlns="http://www.w3.org/TR/REC-html40";>

There is also a message which reads

 file:///XCommerce/xmli/editor.xsl; Line#: 2; Column#: 127

The exception is thrown on the following code snippet:

Transformer transformer = transFactory.newTransformer(new StreamSource(xsl));

where xsl points to  file:///XCommerce/xmli/editor.xsl

I am using xalan.jar version j24d1; Could you tell me why this exception is 
being thrown. Any help will be appreciated

Reply via email to