Problems with xsl:import seem to occure really often, when using Cocoon. I 
often may not use xsl:import, because it simply doesn't work or I get a "not 
allowed in this position" or something similar. xsl:include solved all 
problems until now, but maybe I want to include a named template, where 
already one exists in the current template with the same name ... 
xsl:include won't work then.

Joerg


Hahn Kurt (CHA) wrote:
> I'm using the xsl:import-function in some stylesheets, which was OK while I
> imported just one stylesheet. If I import a second one, I get a
> nullPointerException error. 
> 
> According to the xsl-specs, importing more than one stylesheets shouldn't be
> a problem, is this a limitation of Cocoon (I don't think so, since I didn't
> find anything on this in the mail archives)?
> 
> 
> Here's the code-snippet:
> 
> <?xml version="1.0"  encoding="iso-8859-1"?>
> 
> 
> <xsl:stylesheet version="1.0"
>   xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
>   xmlns:fo="http://www.w3.org/1999/XSL/Format";
>   xmlns:i18n="http://apache.org/cocoon/i18n/2.0";
>   xmlns:eleTitre="http://etat.geneve.com/eleTitre";
>   xmlns:eleTexte="http://etat.geneve.com/eleTexte";>
>   
>   <xsl:import href="formattage.xsl"/>
>   <xsl:import href="fonctions.xsl"/><!--  Both stylesheets are located in
> the same subdirectory, and both are imported successfully
> in different stylesheets, but not together-->
> 
> 
>   <xsl:template match="/">
>     
>    <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format";>
>    
>     <fo:layout-master-set>....


-- 

System Development
VIRBUS AG
Fon  +49(0)341-979-7419
Fax  +49(0)341-979-7409
[EMAIL PROTECTED]
www.virbus.de


---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>

Reply via email to