Revision: 90
Author:   matt
Date:     2006-08-16 04:18:18 +0000 (Wed, 16 Aug 2006)

Log Message:
-----------
Updated XPathScript demo (Yanick)

Modified Paths:
--------------
    trunk/demo/xpathscript/index.xml
    trunk/etc/axkit.conf.sample

Added Paths:
-----------
    trunk/demo/xpathscript/demo.xps

Added: trunk/demo/xpathscript/demo.xps
===================================================================
--- trunk/demo/xpathscript/demo.xps     2006-08-16 04:09:12 UTC (rev 89)
+++ trunk/demo/xpathscript/demo.xps     2006-08-16 04:18:18 UTC (rev 90)
@@ -0,0 +1,36 @@
+<%
+    $template->set( chapter => { showtag => 0 } );
+    $template->set( title => { pre => '<h1>', post => '</h1>' } );
+    $template->set( para => { pre => '<p style="margin: 20px 40px 0 40px">', 
post => '</p>' } );
+    $template->set( emph => { pre => '<i>', post => '</i>' } );
+    
+%>
+<html>
+<head>
+    <title>AxKit2: XPathScript demo</title>
+</head>
+<body>
+
+<h1>Welcome to the AxKit2 XPathScript demo!</h1>
+
+<p>The server is running XPathScript version 
+    <%= $XML::XPathScript::VERSION %>
+</p>
+
+<p>original xml document:</p>
+
+<div style="background-color: lightgrey; margin: 10px">
+<pre>
+<%
+    $doc = XML::XPathScript::current->{dom}->toString; 
+    $doc =~ s/</&lt;/g;
+%>
+<%= $doc %>
+</pre></div>
+
+
+<p>transformed document:</p>
+<%~ / %>
+
+</body>
+</html>

Modified: trunk/demo/xpathscript/index.xml
===================================================================
--- trunk/demo/xpathscript/index.xml    2006-08-16 04:09:12 UTC (rev 89)
+++ trunk/demo/xpathscript/index.xml    2006-08-16 04:18:18 UTC (rev 90)
@@ -1 +1,9 @@
-<q>lll</q>
+<chapter>
+    <title>XML::XPathScript</title>
+      <para>
+        XPathScript is a stylesheet language similar in many ways to XSLT
+        (in concept, not in appearance), for transforming XML from one
+        format to another (possibly HTML, but XPathScript also <emph>shines 
</emph>for
+        non-XML-like output).
+      </para>
+  </chapter> 

Modified: trunk/etc/axkit.conf.sample
===================================================================
--- trunk/etc/axkit.conf.sample 2006-08-16 04:09:12 UTC (rev 89)
+++ trunk/etc/axkit.conf.sample 2006-08-16 04:18:18 UTC (rev 90)
@@ -56,7 +56,7 @@
     <Location /xpathscript>
         DocumentRoot demo/xpathscript
         Plugin demo/serve_xpathscript
-        XPathScript_Stylesheet demo/xpathscript/no_wrapper.xps
+        XPathScript_Stylesheet demo/xpathscript/demo.xps
         XPathScript_OutputType text/html
      </Location>
      


Reply via email to