Well, you need to make sure you generate the nodes in a namespace-aware fashion. Obviously, that doesn't happen in your Xalan extension. Just specifying the "fo:" prefix on every element isn't enough.
Would you please post questions like that to fop-users in the future? Thank you. On 15.12.2006 14:07:52 Andrejus Chaliapinas wrote: > Hi, > > I'm trying to process XML file by applying XSl stylesheet to it and using > such constraint inside that XSL: > > <xsl:copy-of select="xalan:nodeset(ext:generateDynamicNodes())" /> > > My Java method generateDynamicNodes by itself generates NodeList > understandable by xalan in form like <fo:block>...</fo:block>. > > Now when I run everything together during transformation I get this warning: > > org.apache.fop.fo.FOTreeBuilder$MainFOHandler.endElement(FOTreeBuilder.java: > 373) WARN: Mismatch: block (http://www.w3.org/1999/XSL/Format) vs. block () > > Where should I additionally specify that URI to match? > > I've tried this syntax as well without any luck: > > <xsl:copy-of xmlns:fo="http://www.w3.org/1999/XSL/Format" > select="xalan:nodeset(ext:generateDynamicNodes())" /> > > Any help would be appreciated. > > Andrejus Jeremias Maerki