Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 976 Categories, Downloaded 31.060.764 Times

AxKit2::Transformer::XSP 1.1

  Date Added: March 23, 2010  |  Visits: 560


Report Broken Link
Printer Friendly Version

Product Homepage
Download (78 downloads)

AxKit2::Transformer::XSP Perl module contains eXtensible Server Pages. SYNOPSIS < xsp:page xmlns:xsp="" > < xsp:structure > < xsp:import >Time::Piece< /xsp:import > < /xsp:structure > < page > < title >XSP Test< /title > < para > Hello World! < /para > < para > Good < xsp:logic > if (localtime->hour >= 12) { < xsp:content >Afternoon< /xsp:content > } else { < xsp:content >Morning< /xsp:content > } < /xsp:logic > < /para > < /page > < /xsp:page > XSP implements a tag-based dynamic language that allows you to develop your own tags, examples include sendmail and sql taglibs. It is AxKits way of providing an environment for dynamic pages. XSP is originally part of the Apache Cocoon project, and so you will see some Apache namespaces used in XSP. Also, use only one XSP processor in a pipeline. XSP is powerful enough that you should only need one stage, and this implementation allows only one stage. If you have two XSP processors, perhaps in a pipeline that looks like: ... => XSP => XSLT => XSLT => XSP => ... it is pretty likely that the functionality of the intermediate XSLT stages can be factored in to either upstream or downstream XSLT: ... => XSLT => XSP => XSLT => ... This design is likely to lead to a clearer and more maintainable implementation, if only because generating code, especially embedded Perl code, in one XSP processor and consuming it in another is often confusing and even more often a symptom of misdesign. Likewise, you may want to lean towards using Perl taglib modules instead of upstream XSLT "LogicSheets". Upstream XSLT LogicSheets work fine, mind you, but using Perl taglib modules results in a simpler pipeline, simpler configuration (just load the taglib modules in httpd.conf, no need to have the correct LogicSheet XSLT page included whereever you need that taglib), a more flexible coding environment, the ability to pretest your taglibs before installing them on a server, and better isolation of interface (the taglib API) and implementation (the Perl module behind it). LogicSheets work, and can be useful, but are often the long way home. That said, people used to the Cocoon environment may prefer them. Result Code You can specify the result code of the request in two ways. Both actions go inside a < xsp:logic > tag. If you want to completely abort the current request, throw an exception: throw Apache::AxKit::Exception::Retval(return_code => FORBIDDEN); If you want to send your page but have a custom result code, return it: return FORBIDDEN; In that case, only the part of the document that was processed so far gets sent/processed further. Debugging If you have PerlTidy installed (get it from, the compiled XSP scripts can be formatted nicely to spot errors easier. Enable AxDebugTidy for this, but be warned that reformatting is quite slow, it can take 20 seconds or more on each XSP run for large scripts. If you enable AxTraceIntermediate, your script will be dumped alongside the other intermediate files, with an extension of ".XSP". These are unnumbered, thus only get one dump per request. If you have more than one XSP run in a single request, the last one will overwrite the dumps of earlier runs..

Requirements: No special requirements
Platforms: Linux
Keyword: Code Libraries Logicsheets Module One Perl Perl Module Programming Taglib Xslt Xsp Xsp Perl
Users rating: 0/10

License: Freeware Size: 645.12 KB
Libraries  -  Sort::Versions 1.5
Sort::Versions is a Perl 5 module for sorting of revision-like numbers. SYNOPSIS use Sort::Versions; @l = sort { versioncmp($a, $b) } qw( 1.2 1.2.0 1.2a.0 1.2.a 1.a 02.a ); ... use Sort::Versions; print lower if versioncmp(1.2, 1.2a) ==...
5.12 KB  
Libraries  -  Module::Starter::Smart 0.0.2
Module::Starter::Smart is a Perl module that lets you add new modules into an existing distribution. SYNOPSIS use Module::Starter qw/Module::Starter::Simple Module::Starter::Smart/; Module::Starter->create_distro(%args); # or in...
4.1 KB  
Libraries  -  Module::ThirdParty 0.18
Module::ThirdParty is a Perl module which can provide information for 3rd party modules (outside CPAN). SYNOPSIS use Module::ThirdParty; if (is_3rd_party($module)) { my $info = module_information($module); print "$module is a known...
20.48 KB  
Libraries  -  Module::Install 0.64
Module::Install is a standalone, extensible Perl module installer. SYNOPSIS In your Makefile.PL: (Recommended Usage) # Load the Module::Install bundled in ./inc/ use inc::Module::Install; # Define metadata name Your-Module; all_from...
79.87 KB  
Libraries  -  PDL::API 2.4.3
PDL::API is a Perl module for making piddles from Perl and C/XS code. A simple cookbook how to create piddles manually. It covers both the Perl and the C/XS level. Additionally, it describes the PDL core routines that can be accessed from other...
2.1 MB  
Libraries  -  Module::Starter::PBP 0.0.3
Module::Starter::PBP is a Perl module to create a module as recommended in "Perl Best Practices". SYNOPSIS # In your ~/.module-starter/config file... author: email: plugins: Module::Starter::PBP...
8.19 KB  
Libraries  -  Wx::Perl::Packager 0.07
Wx::Perl::Packager provides a module to assist packaging Wx based applications with PAR, ActiveState PerlApp / PDK and Perl A module to assist packaging Wx based applications with PAR, ActiveState PerlApp / PDK and Perl2Exe. All that is needed...
12.29 KB  
Libraries  -  Pod::Dsr 1.02
Pod::Dsr is a Perl module Convert POD data to formatted DSR input SYNOPSIS use Pod::Dsr; my $parser = Pod::Dsr->new (release => $VERSION, section => 8); # Read POD from STDIN and write to STDOUT. $parser->parse_from_filehandle; # Read...
102.4 KB  
Libraries  -  Drupal::Module::Starter 0.06
Drupal::Module::Starter is a Perl module to create Drupal Module starter files. SYNOPSIS You probably dont want to use this module directly - you want to use the drupal-module-starter script in the scripts directory of the distribution use...
14.34 KB  
Libraries  -  Pod::HTML2Pod 4.05
Pod::HTML2Pod Perl module can translate HTML into POD. SYNOPSIS # Use the program html2pod that comes in this dist, or: use Pod::HTML2Pod; print Pod::HTML2Pod::convert( file => my_stuff.html, # input file a_href => 1, # try converting...
18.43 KB  
Programming  -  FLEX-db Digital Asset Manager 3.0.9
FLEX-db - an enterprise Digital Asset Manager (DAM). It ingests and links metadata with files, creates thumbnails, and processes files using business rules. FLEX-db has a JSP client, Java app server for file input and output and an EJB metadata...
21.57 MB  
Programming  -  Libicom 0.9.0
The libicom library is a character based dynamicly linked library for Linux. It is used to remotely control the Icom IC-R8500 wide band receiver via an RS232 link. All call and return parameters to the control functions are character string based....
20.48 KB  
Programming  -  dotdesktop 0.3
Dotdesktop library provides ability to parse desktop entry file and access the information in a convenient way. Desktop entry file format is defined by, it is used to describe information about an application such as the name and...
327.68 KB  
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  libyasl 0.2
Libyasl is a C++ class library to easily realize TCP/UDP/Multicast clientsand servers in IPv4 and IPv6 environments under GNU/Linux systems.
143.36 KB  
Libraries  -  wolfSSL 3.13.0
The wolfSSL embedded SSL/TLS library is a lightweight SSL library written in ANSI standard C and targeted for embedded and RTOS environments - primarily because of its small size, speed, and feature set. It is commonly used in standard operating...
3.88 MB  
Libraries  -  EuGTK 4.8.9
Makes it easy to develop good- looking, fast, cross-platform programs that run on Linux, OS X, and Windows. Euphoria is a very fast interpreted/compiled language with straight-forward syntax. EuGTK allows programming in a clean, object-oriented...
10.68 MB  
Libraries  -  Linux User Group Library Manager 1.0
The LUG Library Manager is a project to help Linux User Groups start their own library. A LUG library is helpful to the community at large because it increases access to information, and gives everyone the opportunity to become more knowledgeable.
5.35 KB  
Libraries  -  Module::MakefilePL::Parse 0.12
Module::MakefilePL::Parse is a Perl module to parse required modules from Makefile.PL. SYNOPSIS use Module::MakefilePL::Parse; open $fh, Makefile.PL; $parser = Module::MakefilePL::Parse->new( join("", ) ); $info = $parser->required;...
8.19 KB  
Libraries  -  sqlpp 0.06
sqlpp Perl package is a SQL preprocessor. sqlpp is a conventional cpp-alike preprocessor taught to understand SQL ( PgSQL, in particular) syntax specificities. In addition to the standard #define/#ifdef/#else/#endif cohort, provides also...
10.24 KB