hi
I tried using saxon parser but still it doesn't work? I want to include another xsl file at certain location in the other xsl file. If i try to include the xsl:import in the main template it throws an java runtime error - element must only be used at top level of stylesheet .

How do i use xsl:include or xsl:import. I want to build an include file which will be used by 5 other xsl files.

Well, judging from what you posted, the included stylesheet doesn't look like a valid stylesheet. The <form> element should be part of some template; it can't be child of the <xsl:stylesheet> element.

As the link attached in my earlier post explains, combining multiple stylesheets gives you the possibility to access matched or named templates defined in included/imported stylesheets from your main stylesheet. That doesn't change or relax any of the XSLT grammar rules for the included or imported stylesheets.

Without a definition of what "it doesn't work" means, without a stated goal for what you are trying to achieve, and without a reasonably complete example of the XSLT and XML documents you are using, there isn't really anything we can do to help you.