PERFORCE change 82001 for review

Murray Stokely murray at FreeBSD.org
Mon Aug 15 01:58:51 GMT 2005


http://perforce.freebsd.org/chv.cgi?CH=82001

Change 82001 by murray at 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>
 
 <!-- 


More information about the p4-projects mailing list