From: <ba...@us...> - 2008-06-10 12:47:03
|
Revision: 8047 http://docbook.svn.sourceforge.net/docbook/?rev=8047&view=rev Author: balls Date: 2008-06-10 05:46:53 -0700 (Tue, 10 Jun 2008) Log Message: ----------- fixed blockquote attribution. fixed listitem para continuation. Modified Paths: -------------- trunk/xsl/roundtrip/dbk2wp.xsl Modified: trunk/xsl/roundtrip/dbk2wp.xsl =================================================================== --- trunk/xsl/roundtrip/dbk2wp.xsl 2008-06-10 11:39:44 UTC (rev 8046) +++ trunk/xsl/roundtrip/dbk2wp.xsl 2008-06-10 12:46:53 UTC (rev 8047) @@ -901,7 +901,11 @@ <xsl:call-template name='doc:make-paragraph'> <xsl:with-param name='style' select='"blockquote-attribution"'/> <xsl:with-param name='content'> - <xsl:apply-templates select='attribution/node()|doc:attribution/node()'/> + <xsl:call-template name='doc:make-phrase'> + <xsl:with-param name='content'> + <xsl:apply-templates select='attribution/node()|doc:attribution/node()'/> + </xsl:with-param> + </xsl:call-template> </xsl:with-param> </xsl:call-template> </xsl:if> @@ -952,15 +956,21 @@ mode='doc:list-continue'/> <xsl:apply-templates select='*[position() != 1]' - mode='doc:body'/> + mode='doc:list-continue'/> </xsl:template> - <xsl:template match='*' mode='doc:list-continue'> + <xsl:template match='para|doc:para' mode='doc:list-continue'> <xsl:apply-templates select='.' mode='doc:body'> <xsl:with-param name='class' select='"para-continue"'/> </xsl:apply-templates> </xsl:template> + <!-- non-paragraph elements in a listitem are rolled back into + the list item upon conversion. + --> + <xsl:template match='*' mode='doc:list-continue'> + <xsl:apply-templates select='.' mode='doc:body'/> + </xsl:template> <xsl:template match='variablelist|doc:variablelist' mode='doc:body'> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |