]> granicus.if.org Git - docbook-dsssl/commitdiff
Added support for para.propagates.style
authorNorman Walsh <ndw@nwalsh.com>
Thu, 18 Jul 2002 10:32:42 +0000 (10:32 +0000)
committerNorman Walsh <ndw@nwalsh.com>
Thu, 18 Jul 2002 10:32:42 +0000 (10:32 +0000)
xsl/html/block.xsl
xsl/html/lists.xsl
xsl/html/param.ent
xsl/html/param.xweb

index 720d81eebba49778ac5b6db016d010d5234ff1d9..af7583308054f1f88395b53d2ced4681d06963b2 100644 (file)
 <xsl:template match="para">
   <xsl:variable name="p">
     <p>
+      <xsl:if test="@role and $para.propagates.style != 0">
+        <xsl:attribute name="class">
+          <xsl:value-of select="@role"/>
+        </xsl:attribute>
+      </xsl:if>
+
       <xsl:if test="position() = 1 and parent::listitem">
         <xsl:call-template name="anchor">
           <xsl:with-param name="node" select="parent::listitem"/>
 <xsl:template match="simpara">
   <!-- see also listitem/simpara in lists.xsl -->
   <p>
+    <xsl:if test="@role and $para.propagates.style != 0">
+      <xsl:attribute name="class">
+        <xsl:value-of select="@role"/>
+      </xsl:attribute>
+    </xsl:if>
+
     <xsl:call-template name="anchor"/>
     <xsl:apply-templates/>
   </p>
 
 <xsl:template match="formalpara">
   <p>
+    <xsl:if test="@role and $para.propagates.style != 0">
+      <xsl:attribute name="class">
+        <xsl:value-of select="@role"/>
+      </xsl:attribute>
+    </xsl:if>
+
     <xsl:call-template name="anchor"/>
     <xsl:apply-templates/>
   </p>
index b2a6445476fd79480da79cd5f7f4c6fe1646a955..1896117dbaa4747d160a0fbdf5d89bc99fa0fcf2 100644 (file)
     </xsl:when>
     <xsl:otherwise>
       <p>
+        <xsl:if test="@role and $para.propagates.style != 0">
+          <xsl:attribute name="class">
+            <xsl:value-of select="@role"/>
+          </xsl:attribute>
+        </xsl:if>
+
         <xsl:call-template name="anchor"/>
         <xsl:apply-templates/>
       </p>
index 8d59216138e9c63a685ad7808130d76d2f308c22..ef14ef1c44bffb15d176c3398cb420961fff9e47 100644 (file)
 <!ENTITY use.role.as.xrefstyle SYSTEM "../params/use.role.as.xrefstyle.xml">
 <!ENTITY use.svg SYSTEM "../params/use.svg.xml">
 <!ENTITY variablelist.as.table SYSTEM "../params/variablelist.as.table.xml">
+<!ENTITY para.propagates.style SYSTEM "../params/para.propagates.style.xml">
index 485b6964a8a813eeeb7a34ab643bccd5858c3815..f4d01df2ee5cc3247cdc3276405a55024ecb1193 100644 (file)
@@ -133,6 +133,7 @@ to be incomplete. Don't forget to read the source, too :-)</para>
 &css.decoration;
 &spacing.paras;
 &emphasis.propagates.style;
+&para.propagates.style;
 &phrase.propagates.style;
 &html.longdesc;
 &html.longdesc.link;
@@ -489,6 +490,7 @@ around all these parameters.</para>
 <src:fragref linkend="olink.pubid.frag"/>
 <src:fragref linkend="olink.resolver.frag"/>
 <src:fragref linkend="olink.sysid.frag"/>
+<src:fragref linkend="para.propagates.style.frag"/>
 <src:fragref linkend="part.autolabel.frag"/>
 <src:fragref linkend="phrase.propagates.style.frag"/>
 <src:fragref linkend="pixels.per.inch.frag"/>