Paragraph Override Recipe
This article demonstrates how an override recipe and a specially prepared ePublisher browser might play nicely together.
Contents
The Override
Do the following:
Create a new ePublisher project. Do it
Override the project's content.xsl using the wwtransform:super resolver. Do it
- Copy the following XSL match template into the file:
<xsl:template match="wwdoc:Paragraph[@stylename = '']" mode="wwmode:content"> <xsl:param name="ParamParagraph" select="." /> <xsl:param name="ParamSplits" /> <xsl:param name="ParamLinks" /> <xsl:param name="ParamCargo" /> <xsl:param name="ParamSplit" /> <html:table> <html:tr> <html:td> <html:img src="http://wiki.webworks.com/JesseWiles/OverrideRecipe?action=AttachFile&do=get&target=mww1.png" /> </html:td> <html:td> <html:div> <xsl:call-template name="ParagraphTextRuns"> <xsl:with-param name="ParamSplits" select="$ParamSplits" /> <xsl:with-param name="ParamCargo" select="$ParamCargo" /> <xsl:with-param name="ParamLinks" select="$ParamLinks" /> <xsl:with-param name="ParamSplit" select="$ParamSplit" /> <xsl:with-param name="ParamPreserveEmpty" select="false()" /> <xsl:with-param name="ParamUseCharacterStyles" select="true()" /> <xsl:with-param name="ParamParagraph" select="$ParamParagraph" /> </xsl:call-template> </html:div> </html:td> </html:tr> </html:table> </xsl:template>