dims 01/07/20 03:54:22
Modified: webapp Tag: cocoon_20_branch sitemap.xmap
webapp/stylesheets/documents Tag: cocoon_20_branch
root2html.xsl
Log:
Patch from John Morrison for better "C2 Docs" from webapp
Revision Changes Path
No revision
No revision
1.11.2.26 +23 -12 xml-cocoon2/webapp/sitemap.xmap
Index: sitemap.xmap
===================================================================
RCS file: /home/cvs/xml-cocoon2/webapp/sitemap.xmap,v
retrieving revision 1.11.2.25
retrieving revision 1.11.2.26
diff -u -r1.11.2.25 -r1.11.2.26
--- sitemap.xmap 2001/07/18 12:13:10 1.11.2.25
+++ sitemap.xmap 2001/07/20 10:54:22 1.11.2.26
@@ -113,6 +113,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>
@@ -206,18 +207,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>
No revision
No revision
1.1.2.5 +19 -0 xml-cocoon2/webapp/stylesheets/documents/root2html.xsl
Index: root2html.xsl
===================================================================
RCS file: /home/cvs/xml-cocoon2/webapp/stylesheets/documents/root2html.xsl,v
retrieving revision 1.1.2.4
retrieving revision 1.1.2.5
diff -u -r1.1.2.4 -r1.1.2.5
--- root2html.xsl 2001/07/19 10:53:37 1.1.2.4
+++ root2html.xsl 2001/07/20 10:54:22 1.1.2.5
@@ -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>
----------------------------------------------------------------------
In case of troubles, e-mail: [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]