You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by cz...@apache.org on 2003/05/26 09:09:18 UTC
cvs commit: cocoon-2.1/src/blocks/authentication-fw/samples sitemap.xmap
cziegeler 2003/05/26 00:09:18
Modified: src/blocks/authentication-fw/samples/docs protected.xml
src/blocks/authentication-fw/samples/stylesheets
simple-page2html.xsl
src/blocks/authentication-fw/samples sitemap.xmap
Log:
Extending sample
Revision Changes Path
1.2 +5 -0 cocoon-2.1/src/blocks/authentication-fw/samples/docs/protected.xml
Index: protected.xml
===================================================================
RCS file: /home/cvs/cocoon-2.1/src/blocks/authentication-fw/samples/docs/protected.xml,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- protected.xml 9 Mar 2003 00:02:23 -0000 1.1
+++ protected.xml 26 May 2003 07:09:18 -0000 1.2
@@ -9,6 +9,11 @@
</para>
<para>You're are logged in now, and can read this protected document containing very important
and secret information.</para>
+ <para xmlns:session="http://apache.org/cocoon/session/1.0">
+ <source>
+ <session:getxml context="authentication" path="/"/>
+ </source>
+ </para>
</content>
</page>
1.3 +15 -0 cocoon-2.1/src/blocks/authentication-fw/samples/stylesheets/simple-page2html.xsl
Index: simple-page2html.xsl
===================================================================
RCS file: /home/cvs/cocoon-2.1/src/blocks/authentication-fw/samples/stylesheets/simple-page2html.xsl,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- simple-page2html.xsl 3 May 2003 16:17:59 -0000 1.2
+++ simple-page2html.xsl 26 May 2003 07:09:18 -0000 1.3
@@ -54,5 +54,20 @@
</center>
</xsl:template>
+ <xsl:template match="source">
+ <div style="background: #b9d3ee; border: thin; border-color: black; border-style: solid; padding-left: 0.8em;
+ padding-right: 0.8em; padding-top: 0px; padding-bottom: 0px; margin: 0.5ex 0px; clear: both;">
+ <textarea name="context" cols="80" rows="20" readonly="true">
+ <xsl:apply-templates/>
+ </textarea>
+ </div>
+ </xsl:template>
+
+ <xsl:template match="@*|node()" priority="-1" name="copy">
+ <xsl:copy>
+ <xsl:apply-templates select="@*|node()"/>
+ </xsl:copy>
+ </xsl:template>
+
</xsl:stylesheet>
<!-- vim: set et ts=2 sw=2: -->
1.3 +2 -0 cocoon-2.1/src/blocks/authentication-fw/samples/sitemap.xmap
Index: sitemap.xmap
===================================================================
RCS file: /home/cvs/cocoon-2.1/src/blocks/authentication-fw/samples/sitemap.xmap,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- sitemap.xmap 3 May 2003 16:17:58 -0000 1.2
+++ sitemap.xmap 26 May 2003 07:09:18 -0000 1.3
@@ -71,6 +71,8 @@
<map:parameter name="handler" value="demohandler"/>
<map:generate src="docs/protected.xml"/>
+ <map:transform type="session"/>
+ <map:transform type="log"/>
<map:transform src="stylesheets/simple-page2html.xsl"/>
<map:transform type="encodeURL"/>
<map:serialize/>