Attached is a diff to enable the translation of todo, changes and faq into
the document xml format.  These can then be viewed from the war.

I've not added _any_ of these to the index.  Should they?  Also, the
formatting is still rudimentary.

J.



=======================================================================
Information in this email and any attachments are confidential, and may
not be copied or used by anyone other than the addressee, nor disclosed
to any third party without our permission.  There is no intention to
create any legally binding contract or other commitment through the use
of this email.

Experian Limited (registration number 653331).  
Registered office: Talbot House, Talbot Street, Nottingham NG1 5HF
? webapp/stylesheets/documents/changes2document.xsl
? webapp/stylesheets/documents/copyover.xsl
? webapp/stylesheets/documents/faq2document.xsl
? webapp/stylesheets/documents/todo2document.xsl
Index: webapp/sitemap.xmap
===================================================================
RCS file: /home/cvspublic/xml-cocoon2/webapp/sitemap.xmap,v
retrieving revision 1.38
diff -u -r1.38 sitemap.xmap
--- webapp/sitemap.xmap 2001/07/20 08:40:44     1.38
+++ webapp/sitemap.xmap 2001/07/20 10:37:18
@@ -116,6 +116,7 @@
    <map:action name="form-validator" 
src="org.apache.cocoon.acting.FormValidatorAction"/>
    <map:action name="session-state" 
src="org.apache.cocoon.acting.SessionStateAction"/>
    <map:action name="session-isvalid" 
src="org.apache.cocoon.acting.SessionIsValidAction"/>
+   <map:action name="resource-exists" 
+src="org.apache.cocoon.acting.ResourceExistsAction"/>
   </map:actions>
 
  </map:components>
@@ -209,18 +210,28 @@
   <map:pipeline internal-only="true">
     <map:match pattern="shared/sidebar">
       <map:generate src="docs/xdocs/internal/site-book.xml"/>
-         <map:transform src="stylesheets/documents/book2sidebar.xsl"/>
-         <map:serialize/>
-       </map:match>
-
-       <map:match pattern="document/*.html">
-         <map:generate src="docs/xdocs/{1}.xml"/>
-         <map:serialize/>
-       </map:match>
-       <map:match pattern="document/*">
-         <map:generate src="docs/xdocs/{1}.xml"/>
-         <map:serialize/>
-       </map:match>
+      <map:transform src="stylesheets/documents/book2sidebar.xsl"/>
+      <map:serialize/>
+       </map:match>
+
+         <map:match pattern="document/*.html">
+           <map:generate src="docs/xdocs/{1}.xml"/>
+     <map:act type="resource-exists">
+      <map:parameter name="url" 
+value="context://stylesheets/documents/{1}2document.xsl"/>
+       <map:transform src="stylesheets/documents/{../1}2document.xsl"/>
+     </map:act>
+           <map:serialize/>
+         </map:match>
+
+         <map:match pattern="document/*">
+           <map:generate src="docs/xdocs/{1}.xml"/>
+     <map:act type="resource-exists">
+      <map:parameter name="url" 
+value="context://stylesheets/documents/{1}2document.xsl"/>
+       <map:transform src="stylesheets/documents/{../1}2document.xsl"/>
+     </map:act>
+           <map:serialize/>
+         </map:match>
+
   </map:pipeline>
 
   <map:pipeline>
Index: webapp/stylesheets/documents/root2html.xsl
===================================================================
RCS file: /home/cvspublic/xml-cocoon2/webapp/stylesheets/documents/root2html.xsl,v
retrieving revision 1.5
diff -u -r1.5 root2html.xsl
--- webapp/stylesheets/documents/root2html.xsl  2001/07/19 10:53:28     1.5
+++ webapp/stylesheets/documents/root2html.xsl  2001/07/20 10:37:18
@@ -98,5 +98,24 @@
    </xsl:element>
 </xsl:template>
 
+<xsl:template match="link">
+         <a href="{@href}"><xsl:apply-templates/></a>
+</xsl:template>
+
+<xsl:template match="connect">
+         <xsl:apply-templates/>
+</xsl:template>
+
+<xsl:template match="jump">
+         <a href="{@href}#{@anchor}"><xsl:apply-templates/></a>
+</xsl:template>
+
+<xsl:template match="fork">
+         <a href="{@href}" target="_blank"><xsl:apply-templates/></a>
+</xsl:template>
+
+<xsl:template match="anchor">
+         <a name="{@id}"><xsl:comment>anchor</xsl:comment></a>
+</xsl:template>  
 
 </xsl:stylesheet>
Index: webapp.site/sitemap.xmap
===================================================================
RCS file: /home/cvspublic/xml-cocoon2/webapp.site/sitemap.xmap,v
retrieving revision 1.3
diff -u -r1.3 sitemap.xmap
--- webapp.site/sitemap.xmap    2001/07/17 08:39:18     1.3
+++ webapp.site/sitemap.xmap    2001/07/20 10:37:18
@@ -15,6 +15,7 @@
     <map:part src="cocoon:/shared/sidebar"/>
     <map:part src="cocoon:/document/{1}"/>
   </map:aggregate>
+
   <map:transform src="style/root2html.xsl">
     <map:parameter name="path" value="{1}"/>
   </map:transform>
@@ -29,11 +30,19 @@
 
 <map:match pattern="document/*.html">
   <map:generate src="content/xdocs/{1}.xml"/>
+  <map:act type="resource-exists">
+   <map:parameter name="url" 
+value="context://stylesheets/documents/{1}2document.xsl"/>
+   <map:transform src="stylesheets/documents/{../1}2document.xsl"/>
+  </map:act>
   <map:serialize/>
 </map:match>
 
 <map:match pattern="document/*">
   <map:generate src="content/xdocs/{1}.xml"/>
+  <map:act type="resource-exists">
+   <map:parameter name="url" 
+value="context://stylesheets/documents/{1}2document.xsl"/>
+   <map:transform src="stylesheets/documents/{../1}2document.xsl"/>
+  </map:act>
   <map:serialize/>
 </map:match>
 
@@ -84,6 +93,10 @@
   <map:matchers default="wildcard">
    <map:matcher name="wildcard" 
src="org.apache.cocoon.matching.WildcardURIMatcherFactory"/>
   </map:matchers>
+
+  <map:actions>
+   <map:action name="resource-exists" 
+src="org.apache.cocoon.acting.ResourceExistsAction"/>
+  </map:actions>
 
  </map:components>
 

todo2document.xsl

copyover.xsl

faq2document.xsl

changes2document.xsl

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to