Date: Mon, 15 Aug 2005 01:58:48 GMT From: Murray Stokely <murray@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 82001 for review Message-ID: <200508150158.j7F1wmtF005273@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=82001 Change 82001 by murray@murray_doc on 2005/08/15 01:58:23 Remove superfluous comments. Add para template to properly setup paragraphs when used as top level elements in a <foil>. Affected files ... .. //depot/projects/docbook_slides/share/openoffice/BSDi.xsl#3 edit Differences ... ==== //depot/projects/docbook_slides/share/openoffice/BSDi.xsl#3 (text+ko) ==== @@ -418,6 +418,8 @@ <draw:text-box presentation:style-name="pr4" draw:text-style-name="P8" draw:layer="layout" svg:width="23.912cm" svg:height="13.231cm" svg:x="2.059cm" svg:y="5.805cm" presentation:class="outline" presentation:user-transformed="true"> <xsl:apply-templates select="itemizedlist"/> +<xsl:apply-templates select="para"/> +<xsl:apply-templates select="screen"/> </draw:text-box> @@ -451,12 +453,9 @@ <text:p> <xsl:attribute name="text:style-name"><xsl:value-of select="$mystyle"/></xsl:attribute> <text:span text:style-name="T6"> -<!-- XXX want only text here, not additional lists --> -<!-- <xsl:apply-templates select="text( )"/> --> <xsl:apply-templates select="node()[not(descendant::itemizedlist)]"/> </text:span> </text:p> -<!-- <xsl:apply-templates select="*"/> --> <xsl:apply-templates select="itemizedlist"/> </text:list-item> </xsl:template> @@ -474,6 +473,19 @@ </text:span> </xsl:template> + +<xsl:template match="para"> +<xsl:choose> +<xsl:when test="parent::foil"> +<!-- special treatment if this is toplevel, inside foil. --> +<text:p text:style-name="P5"><xsl:apply-templates/></text:p> +</xsl:when> +<xsl:otherwise> +<xsl:apply-templates/> +</xsl:otherwise> +</xsl:choose> +</xsl:template> + </xsl:stylesheet> <!--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200508150158.j7F1wmtF005273>