From: Tony G. <Ton...@Su...> - 2003-06-02 21:51:29
|
Giuseppe Greco wrote at 30 May 2003 23:18:40 +0200: > > But an identity stylesheet for post-processing the output .fo files > > with: > > > > <xsl:template match="fo:marker"/> ... > error > xsltCompileStepPattern : no namespace bound to prefix fo > compilation error: file quxo.xsl element template > xsltCompilePattern : failed to compile 'fo:marker' It looks like you didn't declare the namespace for the 'fo' prefix. Try this (although you may not want the xsl:strip-space): ------------------------------------------------------------ <?xml version="1.0" encoding="utf-8"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format" version="1.0"> <xsl:output method="xml"/> <xsl:strip-space elements="*"/> <xsl:template match="fo:marker"/> <xsl:template match="*"> <xsl:copy> <xsl:copy-of select="@*"/> <xsl:apply-templates/> </xsl:copy> </xsl:template> </xsl:stylesheet> ------------------------------------------------------------ Regards, Tony Graham ------------------------------------------------------------------------ XML Technology Center - Dublin Sun Microsystems Ireland Ltd Phone: +353 1 8199708 Hamilton House, East Point Business Park, Dublin 3 x(70)19708 |