xml-axkit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject cvs commit: xml-axkit/demo/xslt .htaccess error.html index.xml stylesheet.xsl
Date Sat, 09 Mar 2002 15:46:33 GMT
matts       02/03/09 07:46:32

  Modified:    demo     .htaccess
               demo/xslt .htaccess error.html index.xml stylesheet.xsl
  Log:
  Implemented something actually working :-)
  
  I will leave further XSLT demos for others to write though.
  
  Revision  Changes    Path
  1.2       +1 -0      xml-axkit/demo/.htaccess
  
  Index: .htaccess
  ===================================================================
  RCS file: /home/cvs/xml-axkit/demo/.htaccess,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- .htaccess	8 Mar 2002 17:31:16 -0000	1.1
  +++ .htaccess	9 Mar 2002 15:46:32 -0000	1.2
  @@ -9,6 +9,7 @@
   
   ## Text files handled by default-handler (I forget why I need this)
   AddHandler default-handler .txt
  +AddHandler default-handler .html
   
   #####################################################################
   ## Debugging Options
  
  
  
  1.3       +1 -1      xml-axkit/demo/xslt/.htaccess
  
  Index: .htaccess
  ===================================================================
  RCS file: /home/cvs/xml-axkit/demo/xslt/.htaccess,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- .htaccess	8 Mar 2002 17:43:44 -0000	1.2
  +++ .htaccess	9 Mar 2002 15:46:32 -0000	1.3
  @@ -3,6 +3,6 @@
   AxAddStyleMap text/xsl Apache::AxKit::Language::LibXSLT
   
   ## Set the error document
  -ErrorDocument 500 error.html
  +ErrorDocument 500 /axkit/xslt/error.html
   
   AxAddRootProcessor text/xsl stylesheet.xsl page
  
  
  
  1.2       +11 -1     xml-axkit/demo/xslt/error.html
  
  Index: error.html
  ===================================================================
  RCS file: /home/cvs/xml-axkit/demo/xslt/error.html,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- error.html	8 Mar 2002 17:31:16 -0000	1.1
  +++ error.html	9 Mar 2002 15:46:32 -0000	1.2
  @@ -9,7 +9,17 @@
   </head>
   
   <body>
  -<h1>Error loading demo...</h1>
  +<h1>Error loading demo</h1>
   <p>
  +This is probably caused because the required Perl modules were
  +not installed on your system. The required modules for this
  +demo are:
  +<ul>
  +    <li>XML::LibXML</li>
  +    <li>XML::LibXSLT</li>
  +</ul>
  +If you think this was not the cause of the error, please check
  +your apache error log, and note any errors there, before getting
  +in touch with the AxKit Users <a href="http://axkit.org/mailinglist.xml">mailing
list</a>.
   </p>
   </body>
  
  
  
  1.2       +11 -1     xml-axkit/demo/xslt/index.xml
  
  Index: index.xml
  ===================================================================
  RCS file: /home/cvs/xml-axkit/demo/xslt/index.xml,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- index.xml	8 Mar 2002 17:31:16 -0000	1.1
  +++ index.xml	9 Mar 2002 15:46:32 -0000	1.2
  @@ -1,3 +1,13 @@
   <page>
  -Some content here please.
  +    <head>
  +        <title>XSLT Examples</title>
  +    </head>
  +    <body>
  +        <section>
  +            <title>XSLT Examples (XML::LibXML)</title>
  +            <para>
  +                These pages contain XSLT examples.
  +            </para>
  +        </section>
  +    </body>
   </page>
  
  
  
  1.2       +38 -2     xml-axkit/demo/xslt/stylesheet.xsl
  
  Index: stylesheet.xsl
  ===================================================================
  RCS file: /home/cvs/xml-axkit/demo/xslt/stylesheet.xsl,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- stylesheet.xsl	8 Mar 2002 17:31:16 -0000	1.1
  +++ stylesheet.xsl	9 Mar 2002 15:46:32 -0000	1.2
  @@ -1,3 +1,39 @@
  -<xsl:stylesheet>
  -Needs writing.
  +<xsl:stylesheet 
  +    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  +    version="1.0">
  +
  +<xsl:output method="html"/>
  +
  +<xsl:template match="/">
  +    <html>
  +        <xsl:apply-templates/>
  +    </html>
  +</xsl:template>
  +
  +<xsl:template match="head">
  +<head><xsl:apply-templates/></head>
  +</xsl:template>
  +
  +<xsl:template match="head/title">
  +<title><xsl:apply-templates/></title>
  +</xsl:template>
  +
  +<xsl:template match="body">
  +<body><xsl:apply-templates/></body>
  +</xsl:template>
  +
  +<xsl:template match="section">
  +    <xsl:apply-templates/>
  +</xsl:template>
  +
  +<xsl:template match="section/title">
  +    <h1><xsl:apply-templates/></h1>
  +</xsl:template>
  +
  +<xsl:template match="para">
  +    <p>
  +    <xsl:apply-templates/>
  +    </p>
  +</xsl:template>
  +
   </xsl:stylesheet>
  
  
  

Mime
View raw message