forrest-svn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From thors...@apache.org
Subject svn commit: r106566 - /forrest/trunk/docs-author/content/xdocs/howto/howto-buildPlugin.xml /forrest/trunk/plugins/org.apache.forrest.plugin.fbits/output.xmap /forrest/trunk/plugins/org.apache.forrest.plugin.fbits/resources/stylesheets/dir2contracts.xsl
Date Thu, 25 Nov 2004 11:25:45 GMT
Author: thorsten
Date: Thu Nov 25 03:25:43 2004
New Revision: 106566

URL: http://svn.apache.org/viewcvs?view=rev&rev=106566
Log:
change the output.xmap to the actual realpath thx to Ross for the tip and added this 'trick'
to the howto
Modified:
   forrest/trunk/docs-author/content/xdocs/howto/howto-buildPlugin.xml
   forrest/trunk/plugins/org.apache.forrest.plugin.fbits/output.xmap
   forrest/trunk/plugins/org.apache.forrest.plugin.fbits/resources/stylesheets/dir2contracts.xsl

Modified: forrest/trunk/docs-author/content/xdocs/howto/howto-buildPlugin.xml
Url: http://svn.apache.org/viewcvs/forrest/trunk/docs-author/content/xdocs/howto/howto-buildPlugin.xml?view=diff&rev=106566&p1=forrest/trunk/docs-author/content/xdocs/howto/howto-buildPlugin.xml&r1=106565&p2=forrest/trunk/docs-author/content/xdocs/howto/howto-buildPlugin.xml&r2=106566
==============================================================================
--- forrest/trunk/docs-author/content/xdocs/howto/howto-buildPlugin.xml	(original)
+++ forrest/trunk/docs-author/content/xdocs/howto/howto-buildPlugin.xml	Thu Nov 25 03:25:43
2004
@@ -180,7 +180,10 @@
         <code>forrest.xmap</code>, whilst the parent of both 
         <code>output.xmap</code> and <code>internal.xmap</code> are

         <code>sitemap.xmap</code>.</p>
-        
+        <p>If you want to use the realpath where the sitemap.xmap of your plugin 
+        resides then you have to use 
+        <source>{forrest:plugins}/PLUGIN_NAME</source> instead of <source>{realpath:/}</source>.
+        </p>
         <p>See the examples below for more details.</p>
       </section>
     </section>

Modified: forrest/trunk/plugins/org.apache.forrest.plugin.fbits/output.xmap
Url: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.fbits/output.xmap?view=diff&rev=106566&p1=forrest/trunk/plugins/org.apache.forrest.plugin.fbits/output.xmap&r1=106565&p2=forrest/trunk/plugins/org.apache.forrest.plugin.fbits/output.xmap&r2=106566
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.fbits/output.xmap	(original)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.fbits/output.xmap	Thu Nov 25 03:25:43
2004
@@ -78,7 +78,7 @@
     <map:match pattern="contracts.get">
 		  <map:generate src="cocoon:/contracts-dir-fbits.get"/>
       <map:transform src="resources/stylesheets/dir2contracts.xsl">
-        <map:parameter name="contentDir" value="{realpath:/}"/>
+        <map:parameter name="contentDir" value="{forrest:plugins}/org.apache.forrest.plugin.fbits"/>
       </map:transform>
       <map:serialize type="xml"/>
     </map:match>

Modified: forrest/trunk/plugins/org.apache.forrest.plugin.fbits/resources/stylesheets/dir2contracts.xsl
Url: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.fbits/resources/stylesheets/dir2contracts.xsl?view=diff&rev=106566&p1=forrest/trunk/plugins/org.apache.forrest.plugin.fbits/resources/stylesheets/dir2contracts.xsl&r1=106565&p2=forrest/trunk/plugins/org.apache.forrest.plugin.fbits/resources/stylesheets/dir2contracts.xsl&r2=106566
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.fbits/resources/stylesheets/dir2contracts.xsl
(original)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.fbits/resources/stylesheets/dir2contracts.xsl
Thu Nov 25 03:25:43 2004
@@ -31,7 +31,6 @@
   -->
   <xsl:template match="/">
       <contracts xmlns:xhtml="http://www.w3.org/1999/xhtml">
-      <xsl:value-of select="$contentDir"/>
         <xsl:apply-templates select="//dir:file"/>                    
       </contracts>
   </xsl:template>
@@ -39,7 +38,7 @@
 <xsl:template match="dir:file[starts-with(@name,'c-')]">
     <xsl:variable name="fct-bit-file">
       <xsl:value-of select="$contentDir"/>
-      <xsl:text>/</xsl:text>
+      <xsl:text>/fbits/</xsl:text>
       <xsl:value-of select="@name"/>
     </xsl:variable>
     <xsl:variable name="fct-bit-title">
@@ -54,19 +53,18 @@
     <xsl:variable name="fct-bit-description">
       <xsl:value-of select="document($fct-bit-file)/contract/description"/>
     </xsl:variable>
-    test=<xsl:value-of select="$fct-bit-file"/>
-    <xsl:if test="$fct-bit-tlc='content'">
-      <content>
+    <content>
+      <xsl:if test="$fct-bit-tlc='content'">
         <contract name="{$fct-bit-title}" css="{$fct-bit-nc}" file-name="{@name}">
           <description>
             <xsl:value-of select="$fct-bit-description"/>
           </description>
-          <realpath>
+          <realpath>  
             <xsl:value-of select="$fct-bit-file"/>
           </realpath>
         </contract>
-      </content>
-    </xsl:if>
+      </xsl:if>
+    </content>
 </xsl:template>
 
 </xsl:stylesheet>

Mime
View raw message