Register  Login       Search  
Forum  
 
  
 
Forum  Forum     
 
SearchForum Home
  XML Lab Products  nxslt  An 'xsl:apply-i...
 An 'xsl:apply-imports' element can only occur within an 'xsl:template' element...
 
kirill.kovalenko
1 posts
Joined
11/15/2006

An 'xsl:apply-imports' element can only occur within an 'xsl:template' element...
Posted: 12 Mar 07 3:01 PM (N/A) Modified By kirill.kovalenko  on 3/12/2007 3:02:28 PM)

Hello,

I've been playing with NXSLT NANT Task + DocBook 5.0 XSL (docbook5-xsl-1.72.0)  and I got the following error:

An 'xsl:apply-imports' element can only occur within an 'xsl:template' element with a 'match' attribute, and cannot occur within an 'xsl:for-each' element.

Could you please explain what went wrong? Does XslCompiledTransfrom work with DocBook XSLT?

olegt
85 posts
www.xmllab.net
Joined
2/25/2005

Re: An 'xsl:apply-imports' element can only occur within an 'xsl:template' element...
Posted: 10 Apr 07 5:07 AM (Israel)
Unfortunately, as far as I know, XslCompiledTransform doesn't support Docbook XSLT stylesheets due to xsl:apply-imports issue. Don't remember exactly why is that, something about optimizations. Looks like this isn't well known problem and nobody works on it. I'll file thi sbug again to Microsoft to see if they can get it fixed.
Oleg Tkachenko, Microsoft MVP for XML, MCPD
http://www.XmlLab.Net | http://blog.tkachenko.com
olegt
85 posts
www.xmllab.net
Joined
2/25/2005

Re: An 'xsl:apply-imports' element can only occur within an 'xsl:template' element...
Posted: 10 Apr 07 5:07 AM (Israel)
Unfortunately, as far as I know, XslCompiledTransform doesn't support Docbook XSLT stylesheets due to xsl:apply-imports issue. Don't remember exactly why is that, something about optimizations. Looks like this isn't well known problem and nobody works on it. I'll file thi sbug again to Microsoft to see if they can get it fixed.
Oleg Tkachenko, Microsoft MVP for XML, MCPD
http://www.XmlLab.Net | http://blog.tkachenko.com
j3d
1 posts
www.agamura.com
Joined
10/20/2007

Re: An 'xsl:apply-imports' element can only occur within an 'xsl:template' element..
Posted: 20 Oct 07 3:10 AM (Switzerland)
Well, I've tried with http://docbook.sourceforge.net/release/xsl/current/xhtml/docbook.xsl and it works... but with http://docbook.sourceforge.net/release/xsl/current/xhtml/chunk.xsl" it doesn't, and I always get the error message "'xsl:apply-imports' element can only occur within an 'xsl:template' element..."

Any news about?
j3d.
  XML Lab Products  nxslt  An 'xsl:apply-i...
Forum Home  Search