Hi Dave, I'm not able to duplicate this problem. Every <para> in my table cells generates a <p> with 1.76.1/xhtml-1_1 stylesheets. Can you provide a sample? Did you test it with the original stylesheet without any customizations?
Bob Stayton Sagehill Enterprises [email protected] ----- Original Message ----- From: Xmplar To: [email protected] Sent: Saturday, March 24, 2012 4:39 AM Subject: [docbook-apps] Generating <p> tags around first para of a table entry When transforming to xhtml1-1 I've noticed that in a formal table, the first <para> inside an <entry> element does not generate with any <p> tags - the text sits immediately inside <td style="border-right: 1px none #000000; border-bottom: 1px none #000000; ">. However, the second and subsequent paragraphs are surrounded with <p>. It is the same situation with text in an <entry> element on its own. This is problematic, because when using iBooks, the first para is not rendered in the selected font style for the document. I looked at <xsl:template match="d:entry|d:entrytbl" name="entry"> and thought I'd found the right place, so I customised with putting <p> in this coding: <xsl:choose> <xsl:when test="$empty.cell"> <xsl:text> </xsl:text> </xsl:when> <xsl:when test="self::d:entrytbl"> <xsl:call-template name="tgroup"/> </xsl:when> <xsl:otherwise> <p> <xsl:apply-templates/> </p> </xsl:otherwise> </xsl:choose> </xsl:element> That only generated an opening <p> tag before the first paragraph - there was no closing tag. Where else should I be looking? -- Dave Gardiner
