Paragraph Override Recipe

This article demonstrates how an override recipe and a specially prepared ePublisher browser might play nicely together.

The Override

Do the following:

  1. Create a new ePublisher project. Do it

  2. Override the project's content.xsl using the wwtransform:super resolver. Do it

  3. 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:img src="" />
         <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" />

JesseWiles/OverrideRecipe (last edited 2010-08-16 18:44:40 by JesseWiles)