Apache-XPointer

 view release on metacpan or  search on metacpan

META.yml  view on Meta::CPAN

--- #YAML:1.0
name: Apache-XPointer
version: 1.1
author:
  - Aaron Straup Cope E<lt>ascope@cpan.orgE<gt>
abstract: mod_perl handler to address XML fragments.
license: perl
requires:
  XML::LibXML: '>= 1.58'
  XML::LibXML::XPathContext: '>= 0.06'
  mod_perl: '>= 1.29'
  perl: '>= 5.6.0'
build_requires:
  Test::Simple: '>= 0.47'
provides:
  Apache::XPointer:

README  view on Meta::CPAN

NAME
    Apache::XPointer - mod_perl handler to address XML fragments.

SYNOPSIS
     <Directory /foo/bar>

      <FilesMatch "\.xml$">
       SetHandler   perl-script
       PerlHandler  Apache::XPointer::XPath

       PerlSetVar   XPointerSendRangeAs    "application/xml"
      </FilesMatch>

README  view on Meta::CPAN


     my $ua  = LWP::UserAgent->new();
     my $req = HTTP::Request->new(GET => "http://example.com/foo/bar/baz.xml");

     $req->header("Range"  => qq(xmlns("x=http://example.com#")xpointer(*//x:thingy)));
     $req->header("Accept" => qq(application/xml));

     my $res = $ua->request($req);

DESCRIPTION
    Apache::XPointer is a mod_perl handler to address XML fragments using
    the HTTP 1.1 *Range* and *Accept* headers and the XPath scheme, as
    described in the paper : *A Semantic Web Resource Protocol: XPointer and
    HTTP*.

    Additionally, the handler may also be configured to recognize a
    conventional CGI parameter as a valid range identifier.

    If no 'range' property is found, then the original document is sent
    unaltered.

lib/Apache/XPointer.pm  view on Meta::CPAN

# $Id: XPointer.pm,v 1.13 2004/11/16 03:56:18 asc Exp $
use strict;

package Apache::XPointer;

$Apache::XPointer::VERSION = '1.1';

=head1 NAME

Apache::XPointer - mod_perl handler to address XML fragments.

=head1 SYNOPSIS

 <Directory /foo/bar>

  <FilesMatch "\.xml$">
   SetHandler	perl-script
   PerlHandler	Apache::XPointer::XPath

   PerlSetVar   XPointerSendRangeAs    "application/xml"

lib/Apache/XPointer.pm  view on Meta::CPAN

 my $ua  = LWP::UserAgent->new();
 my $req = HTTP::Request->new(GET => "http://example.com/foo/bar/baz.xml");

 $req->header("Range"  => qq(xmlns("x=http://example.com#")xpointer(*//x:thingy)));
 $req->header("Accept" => qq(application/xml));

 my $res = $ua->request($req);

=head1 DESCRIPTION

Apache::XPointer is a mod_perl handler to address XML fragments using
the HTTP 1.1 I<Range> and I<Accept> headers and the XPath scheme, as described
in the paper : I<A Semantic Web Resource Protocol: XPointer and HTTP>.

Additionally, the handler may also be configured to recognize a conventional
CGI parameter as a valid range identifier.

If no 'range' property is found, then the original document is
sent unaltered.

If an I<Accept> header is specified with no corresponding match, then the

lib/Apache/XPointer/XPath.pm  view on Meta::CPAN

# $Id: XPath.pm,v 1.10 2004/11/16 04:38:52 asc Exp $
use strict;

package Apache::XPointer::XPath;
use base qw (Apache::XPointer);

$Apache::XPointer::XPath::VERSION = '1.1';

=head1 NAME

Apache::XPointer::XPath - mod_perl handler to address XML fragments using XPath.

=head1 SYNOPSIS

 <Directory /foo/bar>

  <FilesMatch "\.xml$">
   SetHandler	perl-script
   PerlHandler	Apache::XPointer::XPath

   PerlSetVar   XPointerSendRangeAs  "multipart/mixed"

lib/Apache/XPointer/XPath.pm  view on Meta::CPAN

 my $ua  = LWP::UserAgent->new();
 my $req = HTTP::Request->new(GET => "http://example.com/foo/bar/baz.xml");

 $req->header("Range"  => qq(xmlns("x=x-urn:example")xpointer(*//x:thingy)));
 $req->header("Accept" => qq(application/xml, multipart/mixed));

 my $res = $ua->request($req);

=head1 DESCRIPTION

Apache::XPointer is a mod_perl handler to address XML fragments using
the HTTP 1.1 I<Range> and I<Accept> headers and the XPath scheme, as described
in the paper : I<A Semantic Web Resource Protocol: XPointer and HTTP>.

Additionally, the handler may also be configured to recognize a conventional
CGI parameter as a valid range identifier.

If no 'range' property is found, then the original document is
sent unaltered.

If an I<Accept> header is specified with no corresponding match, then the



( run in 0.861 second using v1.01-cache-2.11-cpan-b16cb0d3907 )