forrest-svn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From thors...@apache.org
Subject svn commit: r106716 - /forrest/trunk/plugins/org.apache.forrest.plugin.fbits/output.xmap /forrest/trunk/plugins/org.apache.forrest.plugin.fbits/resources/stylesheets/filter.xsl
Date Sat, 27 Nov 2004 14:54:38 GMT
Author: thorsten
Date: Sat Nov 27 06:54:37 2004
New Revision: 106716

URL: http://svn.apache.org/viewcvs?view=rev&rev=106716
Log:
add xinclude for the contracts
Modified:
   forrest/trunk/plugins/org.apache.forrest.plugin.fbits/output.xmap
   forrest/trunk/plugins/org.apache.forrest.plugin.fbits/resources/stylesheets/filter.xsl

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=106716&p1=forrest/trunk/plugins/org.apache.forrest.plugin.fbits/output.xmap&r1=106715&p2=forrest/trunk/plugins/org.apache.forrest.plugin.fbits/output.xmap&r2=106716
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.fbits/output.xmap	(original)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.fbits/output.xmap	Sat Nov 27 06:54:37
2004
@@ -19,6 +19,12 @@
     <map:generators default="file">
       <map:generator name="directory" src="org.apache.cocoon.generation.DirectoryGenerator"
/>
     </map:generators>
+    <map:transformers default="xslt">
+      <map:transformer name="cinclude"
+        src="org.apache.cocoon.transformation.CIncludeTransformer"/>
+      <map:transformer name="xinclude"
+        src="org.apache.cocoon.transformation.XIncludeTransformer"/>
+    </map:transformers>
   </map:components>
 
 <map:pipelines>
@@ -92,6 +98,8 @@
         <map:part src="cocoon:/contracts.get" /> 
       </map:aggregate>
       <map:transform src="resources/stylesheets/filter.xsl"/>
+      <map:transform type="xinclude"/>
+      <map:transform src="resources/stylesheets/contract.xsl"/>
       <map:serialize type="xml"/>
     </map:match>
   </map:pipeline>

Modified: forrest/trunk/plugins/org.apache.forrest.plugin.fbits/resources/stylesheets/filter.xsl
Url: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.fbits/resources/stylesheets/filter.xsl?view=diff&rev=106716&p1=forrest/trunk/plugins/org.apache.forrest.plugin.fbits/resources/stylesheets/filter.xsl&r1=106715&p2=forrest/trunk/plugins/org.apache.forrest.plugin.fbits/resources/stylesheets/filter.xsl&r2=106716
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.fbits/resources/stylesheets/filter.xsl
(original)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.fbits/resources/stylesheets/filter.xsl
Sat Nov 27 06:54:37 2004
@@ -29,7 +29,11 @@
 
 -->
 
-<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:forrest="http://apache.org/forrest/templates/1.0">
+<xsl:stylesheet version="1.0" 
+  xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
+  xmlns:forrest="http://apache.org/forrest/templates/1.0"  
+  xmlns:xi="http://www.w3.org/2001/XInclude"
+  >
 
   <xsl:template match="/">
     <forrest:filter>
@@ -45,7 +49,8 @@
   
   <xsl:template match="forrest:contract">
     <xsl:variable name="css-ft"><xsl:value-of select="@name"/></xsl:variable>
-    <xsl:copy-of select="//forrest:contracts/forrest:contract[@css=$css-ft]" />
+    <xsl:variable name="includePath"><xsl:value-of select="//forrest:contracts/forrest:contract[@css=$css-ft]/realpath"/></xsl:variable>
+    <xi:include href="{$includePath}#xpointer(/*)"/>
   </xsl:template>
   
   <xsl:template match="forrest:contracts/forrest:contract"/>

Mime
View raw message