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 2001/10/12 09:20:55 UTC

[PATCH] faq2document.xsl fix

The following patch fixes problems displaying the source examples on
the FAQ page.

diff -u -r1.1 faq2document.xsl
--- faq2document.xsl	2001/10/12 05:18:52	1.1
+++ faq2document.xsl	2001/10/12 07:14:35
@@ -47,4 +47,12 @@
     <xsl:apply-templates/>
   </xsl:template>
 
-</xsl:stylesheet>
\ No newline at end of file
+  <xsl:template match="@*|*|text()|processing-instruction()|comment()">
+    <!-- Catch all template. Just pass along unmodified everything we
+         don't handle. -->
+    <xsl:copy>
+      <xsl:apply-templates select="@*|*|text()|processing-instruction()|comment()"/>
+    </xsl:copy>
+  </xsl:template>
+
+</xsl:stylesheet>


Greetings,
-- 
Ovidiu Predescu <ov...@cup.hp.com>
http://orion.nsr.hp.com/ (inside HP's firewall only)
http://sourceforge.net/users/ovidiu/ (my SourceForge page)
http://www.geocities.com/SiliconValley/Monitor/7464/ (GNU, Emacs, other stuff)

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


AW: [PATCH] faq2document.xsl fix

Posted by Carsten Ziegeler <cz...@sundn.de>.
Hi Ovidiu,

thanks for your patch, put I think this issue is already solved.
I checked in earlier this week the missing copyover.xsl,
which is included by the faq2document.xsl. The copyover.xsl
contains exactly your template.
Or did I oversee something?

Carsten

> -----Ursprungliche Nachricht-----
> Von: ovidiu@cup.hp.com [mailto:ovidiu@cup.hp.com]
> Gesendet: Freitag, 12. Oktober 2001 09:21
> An: cocoon-dev@xml.apache.org
> Betreff: [PATCH] faq2document.xsl fix
> 
> 
> 
> The following patch fixes problems displaying the source examples on
> the FAQ page.
> 
> diff -u -r1.1 faq2document.xsl
> --- faq2document.xsl	2001/10/12 05:18:52	1.1
> +++ faq2document.xsl	2001/10/12 07:14:35
> @@ -47,4 +47,12 @@
>      <xsl:apply-templates/>
>    </xsl:template>
>  
> -</xsl:stylesheet>
> \ No newline at end of file
> +  <xsl:template match="@*|*|text()|processing-instruction()|comment()">
> +    <!-- Catch all template. Just pass along unmodified everything we
> +         don't handle. -->
> +    <xsl:copy>
> +      <xsl:apply-templates 
> select="@*|*|text()|processing-instruction()|comment()"/>
> +    </xsl:copy>
> +  </xsl:template>
> +
> +</xsl:stylesheet>
> 
> 
> Greetings,
> -- 
> Ovidiu Predescu <ov...@cup.hp.com>
> http://orion.nsr.hp.com/ (inside HP's firewall only)
> http://sourceforge.net/users/ovidiu/ (my SourceForge page)
> http://www.geocities.com/SiliconValley/Monitor/7464/ (GNU, Emacs, 
> other stuff)
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> For additional commands, email: cocoon-dev-help@xml.apache.org
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org