You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Ovidiu Predescu <ov...@cup.hp.com> on 2000/08/30 02:48:05 UTC

[PATCH] document2html.xsl

The current version of document2html.xsl doesn't properly translate the
elements inside a <dd> element as it should. The following patch fixes this
problem by properly processing embedded elements in the <dd> element.

Regards,
-- 
Ovidiu Predescu <ov...@cup.hp.com>
http://www.geocities.com/SiliconValley/Monitor/7464/


--- document2html.xsl   2000/08/11 17:59:42     1.1.1.1
+++ document2html.xsl   2000/08/30 00:15:02
@@ -374,14 +374,10 @@
   <li>
    <strong><xsl:value-of select="."/></strong>
    <xsl:text> - </xsl:text>
-   <xsl:value-of select="following::dd"/>   
+   <xsl:apply-templates select="dd"/>   
   </li>
  </xsl:template>
  
- <xsl:template match="dd">
-  <!-- ignore since already used -->
- </xsl:template>
-
 <!-- ====================================================================== -->
 <!-- table section -->
 <!-- ====================================================================== -->



Re: [PATCH] document2html.xsl

Posted by Stefano Mazzocchi <st...@apache.org>.
Ovidiu Predescu wrote:
> 
> The current version of document2html.xsl doesn't properly translate the
> elements inside a <dd> element as it should. The following patch fixes this
> problem by properly processing embedded elements in the <dd> element.
> 
> Regards,
> --
> Ovidiu Predescu <ov...@cup.hp.com>
> http://www.geocities.com/SiliconValley/Monitor/7464/
> 
> --- document2html.xsl   2000/08/11 17:59:42     1.1.1.1
> +++ document2html.xsl   2000/08/30 00:15:02
> @@ -374,14 +374,10 @@
>    <li>
>     <strong><xsl:value-of select="."/></strong>
>     <xsl:text> - </xsl:text>
> -   <xsl:value-of select="following::dd"/>
> +   <xsl:apply-templates select="dd"/>
>    </li>
>   </xsl:template>
> 
> - <xsl:template match="dd">
> -  <!-- ignore since already used -->
> - </xsl:template>
> -
>  <!-- ====================================================================== -->
>  <!-- table section -->
>  <!-- ====================================================================== -->
> 
>   ------------------------------------------------------------------------
>    Part 1.2Type: application/pgp-signature

Patched. Thanks.

-- 
Stefano Mazzocchi      One must still have chaos in oneself to be
                          able to give birth to a dancing star.
<st...@apache.org>                             Friedrich Nietzsche
--------------------------------------------------------------------
 Missed us in Orlando? Make it up with ApacheCON Europe in London!
------------------------- http://ApacheCon.Com ---------------------