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