You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axkit-dev@xml.apache.org by ma...@apache.org on 2003/08/23 23:48:57 UTC
cvs commit: xml-axkit/t/xpathscript-basic 01.t 02_document.t
mach 2003/08/23 14:48:57
Modified: t/conf extra.last.conf.in
Added: t/htdocs/style/xpathscript-basic 01.xps 02_document.xps
t/htdocs/xpathscript-basic 01.xml 02_document.xml base2.xml
t/xpathscript-basic 01.t 02_document.t
Log:
simple xpathscript tests.
Revision Changes Path
1.5 +10 -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.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- extra.last.conf.in 23 Aug 2003 19:43:27 -0000 1.4
+++ extra.last.conf.in 23 Aug 2003 21:48:57 -0000 1.5
@@ -85,7 +85,17 @@
AxAddProcessor text/xsl /style/directives/style/02_processor_inheritance_curly.xsl
</Location>
+<Location "/xpathscript-basic/01.xml">
+ SetHandler axkit
+ AxResetProcessors
+ AxAddProcessor application/x-xpathscript /style/xpathscript-basic/01.xps
+</Location>
+<Location "/xpathscript-basic/02_document.xml">
+ SetHandler axkit
+ AxResetProcessors
+ AxAddProcessor application/x-xpathscript /style/xpathscript-basic/02_document.xps
+</Location>
# Test for global styles bug.
# only triggered when using a global style AND a media/style combination.
1.1 xml-axkit/t/htdocs/style/xpathscript-basic/01.xps
Index: 01.xps
===================================================================
<%
my $r = shift;
%>
<root>Current URI: <%= $r->uri %></root>
1.1 xml-axkit/t/htdocs/style/xpathscript-basic/02_document.xps
Index: 02_document.xps
===================================================================
<%
my $r = shift;
%>
<root><%= findnodes_as_string('document("base2.xml")') %>></root>
1.1 xml-axkit/t/htdocs/xpathscript-basic/01.xml
Index: 01.xml
===================================================================
<?xml version="1.0"?>
<root/>
1.1 xml-axkit/t/htdocs/xpathscript-basic/02_document.xml
Index: 02_document.xml
===================================================================
<?xml version="1.0"?>
<root/>
1.1 xml-axkit/t/htdocs/xpathscript-basic/base2.xml
Index: base2.xml
===================================================================
<?xml version="1.0"?>
<include>include ok</include>
1.1 xml-axkit/t/xpathscript-basic/01.t
Index: 01.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 '/xpathscript-basic/01.xml' ;
return 0 unless $resp->content =~ m!Current URI: /xpathscript-basic/01.xml!gi;
return 1;
}
ok( test_basic(),1, "Testing basic Xpathscript transformation output" );
1.1 xml-axkit/t/xpathscript-basic/02_document.t
Index: 02_document.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 '/xpathscript-basic/02_document.xml' ;
return 0 unless $resp->content =~ m!include ok!gi;
return 1;
}
ok( test_basic(),1, "Testing basic Xpathscript transformation output" );