--- "Hahn Kurt (CHA)" <[EMAIL PROTECTED]>
escribi�: > 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. 

I'm using complex xsl with a lot of imports and
imports inside imported filesheets, in order to
overwrite templates, atributes sets and parameters,
and I got no problems. I'm using Saxon instead of
Xalan, perhaps that will solve your problems.
What error appears in the sitemap.log?
> 
> 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>....
> 


_______________________________________________________________
Yahoo! Messenger
Nueva versi�n: Webcam, voz, y mucho m�s �Gratis! 
Desc�rgalo ya desde http://messenger.yahoo.es

---------------------------------------------------------------------
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