Did you build your DOM with a namespace-aware parser or, if you built it
programmatically, did you use the DOM Level 2 namespace-aware calls?
If you can't figure it out, send your code and we'll have a look.
Gary
Rajan wrote:
>
> Hi Guys,
> I am getting a strange problem... When I try to create Transformer
> using StreamSource() it works. But fails for DOMSource for same xsl.
> As the exceptrion says taht it requires "version" attribute. It is
> there....
>
> Following is the exception : ---
>
> file:///E:\mywork\R&D\xsl\javax.xml.transform.dom.DOMSource; Line 0; Column
> 0; javax.xml.transform.TransformerConfigurationException: stylesheet
> requires attribute: version at
> org.apache.xalan.processor.TransformerFactoryImpl.newTransformer(Transformer
> FactoryImpl.java:684) at TestXSLT.main(TestXSLT.java:24)
>
> Any pointers....
>
> Thanks,
> Rajan