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: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>

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