Subject: Re: [xsl] Problem with embeded XHTML in an XML file and transformation to XSL:FO|
From: "andrew welch" <andrew.j.welch@xxxxxxxxx>
Date: Sun, 13 Aug 2006 13:54:57 +0100
All-right, I missed that one, sorry about that.
The namespace is urn:schemas-microsoft-com:office:office as I found on the internet, but adding into the template as seen below doesn't seem to work (still gives exactly the same error, so doesn't seen to pay any attention to it).
<xsl:template match="Content" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:saxon="http://saxon.sf.net/"> <xsl:if test=". != ''"> <fo:block space-after="10mm"> <xsl:variable name="parseContent" select="saxon:parse(.)"/> <xsl:apply-templates select="$parseContent"/> </fo:block> </xsl:if> </xsl:template>
Am I doing something stupid wrong?
Yes - add it to your <xsl:stylesheet> or <xsl:transform> elements... not at the template level...
Sorry for all these newbie questions!