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

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

Serving Software Downloads in 956 Categories, Downloaded 50.478.105 Times

AxKit2::Transformer::XSP 1.1

  Date Added: March 23, 2010  |  Visits: 1.224

AxKit2::Transformer::XSP

Report Broken Link
Printer Friendly Version


Product Homepage
Download (103 downloads)

AxKit2::Transformer::XSP Perl module contains eXtensible Server Pages. SYNOPSIS < xsp:page xmlns:xsp="http://apache.org/xsp/core/v1" > < 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 http://perltidy.sourceforge.net), 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
AXKIT2::TRANSFORMER::XSP RELATED
Organizers  -  Code Camp Event Module 1.0.0.17553
Code Camp Event Module allows you to create events complete with speakers, sessions and an agenda. Features - Create multiple Code Camps - Tracks registrations and optionally adds people to the waitlist when the event is full - Speaker bios...
 
Libraries  -  Language::Zcode::Parser 0.8
Language::Zcode::Parser is a Perl module that reads and parses a Z-code file into a big Perl hash. SYNOPSIS # Create a Pure Perl Parser my $pParser = new Language::Zcode::Parser "Perl"; # If they didnt put ".z5" at the end, find it anyway...
296.96 KB  
Modules  -  Site mapField Value Product Name Version Category BB Code: Description This module provides a site map that gives visitors an o 7.x-1.0
This module provides a site map that gives visitors an overview of your site. It can also display the RSS feeds for all blogs and categories.Drupal generates the RSS feeds automatically but few seems to be aware that they exist.The site map can...
20.48 KB  
Business  -  Natural Docs Feb 10, 2007
Natural Docs is an extensible, multi-language, source code documentation generator written in Perl. Its syntax is transparent so the source comments read just as easily as the generated documentation. Natural Docs also focuses on automation and...
307.2 KB  
Code Management Tools  -  QOF Generator 0.0.2
QOF Generator is a project that generates C object source code from HTML/PHP or Perl/XML. Generating new objects for the Query Object Framework is repetitive, tedious, and time consuming. Qof Generator automates this process in PHP to build a...
17.41 KB  
HTML Utilities  -  Source Morph 1.0.1
Source Morph is program that converts C, C++, Visual Basic, QBasic, Java, JavaScript, and Perl programs into webpages that display your code with the same syntax highlighting as your programming environment. Converts hundreds of files at once....
1.78 MB  
Development Editors  -  Code::Blocks EDU Portable 1.1.1
Code::Blocks is an open source, free, configurable programming environment for C/C++. The Code::Blocks EDU-Portable interface, integrated help, tools and default compilation settings are all configured for ease of learning C and C++. The...
116 MB  
Miscellaneous  -  Easily call executables from Python 1.0
One common aspect of programming is calling executables and processing results. It is not as easy or elegant to do this in Python as it is in a shell scripting language, such as bash. This script implements a shell-like module in Python which...
 
Code Management Tools  -  Jedi Code Format 2.3+
The Jedi Code Formatter is an Open-Source code formatter for the Borland Delphi Object-Pascal programming language. The formatter can standardize all aspects of Delphi Object Pascal and Delphi.NET source code formatting, including indentation,...
2.5 MB  
Libraries  -  Chilkat Class Libraries for Java 9.2.1
The full suite of Chilkat components & libraries are now available for the Java programming language. Commercially licensed components include: Email (POP3 / SMTP) IMAP Zip, GZip, and Unix Compress Encryption MIME and S/MIME FTP HTTP MHT...
 
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
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  -  Math::GMPf 0.29
Math::GMPf - perl interface to the GMP library's floating point (mpf) functions.
30.72 KB  
Programming  -  Net::Wire10 1.08
Net::Wire10 is a Pure Perl connector that talks to Sphinx, MySQL and Drizzle servers. Net::Wire10 implements the low-level network protocol, alias the MySQL wire protocol version 10, necessary for talking to one of the aforementioned...
30.72 KB  
Programming  -  logilab-common 0.56.2
a bunch of modules providing low level functionnalities shared among some python projects devel Please note that some of the modules have some extra dependencies. For instance, logilab.common.db will require a db-api 2.0 compliant...
174.08 KB  
Programming  -  OpenSSL for linux 1.0.0a
The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implementing the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1) protocols as well as a...
3.83 MB  
Libraries  -  wolfSSL 4.0.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