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 2002/05/26 18:36:32 UTC

cvs commit: xml-axkit/lib/Apache/AxKit/Language XPathScript.pm

matts       02/05/26 09:36:32

  Modified:    lib/Apache/AxKit/Language XPathScript.pm
  Log:
  Added axkit: support
  
  Revision  Changes    Path
  1.6       +5 -2      xml-axkit/lib/Apache/AxKit/Language/XPathScript.pm
  
  Index: XPathScript.pm
  ===================================================================
  RCS file: /home/cvs/xml-axkit/lib/Apache/AxKit/Language/XPathScript.pm,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- XPathScript.pm	22 May 2002 19:41:39 -0000	1.5
  +++ XPathScript.pm	26 May 2002 16:36:32 -0000	1.6
  @@ -1,4 +1,4 @@
  -# $Id: XPathScript.pm,v 1.5 2002/05/22 19:41:39 matts Exp $
  +# $Id: XPathScript.pm,v 1.6 2002/05/26 16:36:32 matts Exp $
   
   package Apache::AxKit::Language::XPathScript;
   
  @@ -321,7 +321,10 @@
       my $results = XML::XPath::NodeSet->new();
       my $uri = $params[0];
       my $newdoc;
  -    if ($uri =~ /^\w\w+:/) { # assume it's scheme://foo uri
  +    if ($uri =~ /^axkit:/) {
  +        $newdoc = $parser->parse( AxKit::get_axkit_uri($uri) );
  +    }
  +    elsif ($uri =~ /^\w\w+:/) { # assume it's scheme://foo uri
           eval {
               # warn "Trying to parse $params[0]\n";
               $newdoc = $parser->parse(