forrest-svn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cdupoiri...@apache.org
Subject svn commit: r463293 - in /forrest/trunk: main/webapp/skins/common/xslt/html/strip_namespaces.xsl whiteboard/plugins/org.apache.forrest.themes.core/themes/pelt/html/content-main.ft
Date Thu, 12 Oct 2006 15:57:00 GMT
Author: cdupoirieux
Date: Thu Oct 12 08:56:59 2006
New Revision: 463293

URL: http://svn.apache.org/viewvc?view=rev&rev=463293
Log:
With few fixes, PHP Plugin is useless.
just add :
    <!-- PHP Documentation -->
    <map:match type="regexp" pattern="^(.*?)([^/]*).php$">
      <map:generate src="cocoon://{1}{2}.html"/>
      <map:serialize type="xml"/>
    </map:match>
in your project sitemap.xmap.
I don't succeed to delete the plugin, but I try...

Modified:
    forrest/trunk/main/webapp/skins/common/xslt/html/strip_namespaces.xsl
    forrest/trunk/whiteboard/plugins/org.apache.forrest.themes.core/themes/pelt/html/content-main.ft

Modified: forrest/trunk/main/webapp/skins/common/xslt/html/strip_namespaces.xsl
URL: http://svn.apache.org/viewvc/forrest/trunk/main/webapp/skins/common/xslt/html/strip_namespaces.xsl?view=diff&rev=463293&r1=463292&r2=463293
==============================================================================
--- forrest/trunk/main/webapp/skins/common/xslt/html/strip_namespaces.xsl (original)
+++ forrest/trunk/main/webapp/skins/common/xslt/html/strip_namespaces.xsl Thu Oct 12 08:56:59
2006
@@ -17,7 +17,7 @@
 -->
 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
   <!-- FIXME: FOR-555. This might not be the best solution though, but it sure works -->
-  <xsl:template match="comment()">
+  <xsl:template match="comment()|processing-instruction()">
     <xsl:copy>
       <xsl:apply-templates select="@*|*|text()|processing-instruction()|comment()"/>
     </xsl:copy>

Modified: forrest/trunk/whiteboard/plugins/org.apache.forrest.themes.core/themes/pelt/html/content-main.ft
URL: http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/org.apache.forrest.themes.core/themes/pelt/html/content-main.ft?view=diff&rev=463293&r1=463292&r2=463293
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.themes.core/themes/pelt/html/content-main.ft
(original)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.themes.core/themes/pelt/html/content-main.ft
Thu Oct 12 08:56:59 2006
@@ -44,7 +44,7 @@
           <forrest:part>
             <xsl:comment>+ |start content-main +</xsl:comment>
             <xsl:apply-templates
-              select="//div[@id='content']/div[@id='content-main']/*">
+              select="//div[@id='content']/div[@id='content-main']/*|//div[@id='content']/div[@id='content-main']/processing-instruction()">
               <xsl:with-param name="content-main-conf"
                       select="$content-main-conf"/>
             </xsl:apply-templates>
@@ -72,7 +72,7 @@
       <xsl:template match="div[@class = 'section']">
         <xsl:param name="content-main-conf"/>
         <div class="section">
-          <xsl:apply-templates select="*">
+          <xsl:apply-templates select="*|processing-instruction()">
             <xsl:with-param name="content-main-conf"
                   select="$content-main-conf"/>
           </xsl:apply-templates>



Mime
View raw message