xml-axkit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From m...@apache.org
Subject cvs commit: xml-axkit/t/uri axkit.t
Date Sun, 19 Oct 2003 16:09:36 GMT
mach        2003/10/19 09:09:36

  Modified:    .        MANIFEST
               t/conf   extra.last.conf.in
  Added:       t/htdocs/style/uri/axkit 01.xsl subrequest.xsl
               t/htdocs/uri/axkit 01.xml subrequest.xml
               t/uri    axkit.t
  Log:
  Tests for axkit: style subrequests.
  
  Mike.
  
  Revision  Changes    Path
  1.20      +6 -0      xml-axkit/MANIFEST
  
  Index: MANIFEST
  ===================================================================
  RCS file: /home/cvs/xml-axkit/MANIFEST,v
  retrieving revision 1.19
  retrieving revision 1.20
  diff -u -r1.19 -r1.20
  --- MANIFEST	31 Aug 2003 20:24:12 -0000	1.19
  +++ MANIFEST	19 Oct 2003 16:09:36 -0000	1.20
  @@ -203,4 +203,10 @@
   t/htdocs/xpathscript-basic/base2.xml
   t/xpathscript-basic/01.t
   t/xpathscript-basic/02_document.t
  +t/uri/axkit.t
  +t/htdocs/uri/axkit/01.xml
  +t/htdocs/uri/axkit/subrequest.xml
  +t/htdocs/style/uri/axkit/01.xsl
  +t/htdocs/style/uri/axkit/subrequest.xsl
  +
   typemap
  
  
  
  1.7       +12 -0     xml-axkit/t/conf/extra.last.conf.in
  
  Index: extra.last.conf.in
  ===================================================================
  RCS file: /home/cvs/xml-axkit/t/conf/extra.last.conf.in,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- extra.last.conf.in	7 Sep 2003 17:11:01 -0000	1.6
  +++ extra.last.conf.in	19 Oct 2003 16:09:36 -0000	1.7
  @@ -123,3 +123,15 @@
   	AxAddProcessor text/xsl /style/xslt-basic/identity.xsl
   </Location>
   
  +<Location "/uri/axkit/01.xml">
  +	SetHandler axkit
  +	AxResetProcessors
  +	AxAddProcessor text/xsl /style/uri/axkit/01.xsl
  +</Location>
  +
  +<Location "/uri/axkit/subrequest.xml">
  +	SetHandler axkit
  +	AxResetProcessors
  +	AxAddProcessor text/xsl /style/uri/axkit/subrequest.xsl
  +</Location>
  +
  
  
  
  1.1                  xml-axkit/t/htdocs/style/uri/axkit/01.xsl
  
  Index: 01.xsl
  ===================================================================
  <?xml version="1.0"?>
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  
  <xsl:template match="root">
  	<root><xsl:value-of select="document('axkit:./subrequest.xml')/root"/></root>
  </xsl:template>
  
  </xsl:stylesheet>
  
  
  
  
  1.1                  xml-axkit/t/htdocs/style/uri/axkit/subrequest.xsl
  
  Index: subrequest.xsl
  ===================================================================
  <?xml version="1.0"?>
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  
  <xsl:template match="root">
  <root>Subrequest text added</root>
  </xsl:template>
  
  </xsl:stylesheet>
  
  
  
  
  1.1                  xml-axkit/t/htdocs/uri/axkit/01.xml
  
  Index: 01.xml
  ===================================================================
  <?xml version="1.0"?>
  <root/>
  
  
  
  1.1                  xml-axkit/t/htdocs/uri/axkit/subrequest.xml
  
  Index: subrequest.xml
  ===================================================================
  <?xml version="1.0"?>
  <root/>
  
  
  
  1.1                  xml-axkit/t/uri/axkit.t
  
  Index: axkit.t
  ===================================================================
  #!perl
  use Apache::Test;
  use Apache::TestUtil;
  use Apache::TestRequest qw( GET POST ) ;
  
  plan tests => 1, have_module qw(LWP);
  
  sub test_basic {
      my $resp = GET '/uri/axkit/01.xml' ;
      return 0 unless $resp->content =~ /subrequest text added/gi;
      return 1;
  }
  
  ok( test_basic(),1,    "Testing axkit:// subrequests" );
  
  
  

Mime
View raw message