Programming

Session handling in a PHP based shopping cart

July 25, 2011

We can build a simple and fully functional shopping cart for our own use with the help of PHP. For this, all you need to have is the knowledge of PHP sessions and array functions. So rather than discussing what PHP sessions are and how they work, we would move straight to the actual work [...]

Read the full article →

Managing web pages with ADO

July 21, 2011

ADO is a specially designed Microsoft technology used to access databases from web pages. Some working knowledge of Microsoft Access and VB Script is required to understand this tutorial fully. In ASP people use ADO (ActiveX database objects) to get data from database. ADODB is comprised of 3 main objects: Connection, RecordSet, Command. We would [...]

Read the full article →

Creating Object Iterators in PHP

July 19, 2011

Items can be iterated with the help of arrays in PHP but when arrays are not available, there is alternate and even more efficient method to undertake the same task. This is particularly useful while reading records from a database or lines of text read from a file. In this tutorial, we would create a [...]

Read the full article →

XSL-FO Pages

July 15, 2011

Having discussed important aspects of XSL-FO such as areas, output formats and document structure, today’s tutorial would be devoted to XSL-FO Pages. XSL-FO basically uses page templates called “Page Masters” to define the layout of pages. Each template must have a unique name. For example, consider the following piece of code:

Read the full article →

XSL-FO: Area and Output Formats

July 12, 2011

In a previous article, we discussed XSL-FO documentation structure. In this article, we would discuss the Area attribute and the output format of XSL-FO. The XSL formatting model defines a number of rectangular areas (boxes) to display output. All output (text, pictures, etc.) will be formatted into these boxes and then displayed or printed to [...]

Read the full article →

XSL-FO: Document Structure

July 10, 2011

XSL-FO is a scripting extension of XML which stands for Extensible Stylesheet Language Formatting Objects. Its main purpose is to format XML data for output to screen, paper or other media. A prior knowledge of XML is required to learn XSL-FO. In this tutorial, we would discuss the structure of XSL-FO documents in detail. XSL-FO [...]

Read the full article →

XSchema Attributes and Restriction

June 29, 2011

In a previous article, we discussed about XSchema, its implications and also its elements. In this article, we would be discussing its attributes and the restrictions that are faced while scripting with XSchema. First, let’s take a look at XSchema attributes. Simple elements cannot have attributes. If an element has attributes, it is considered to [...]

Read the full article →

XSchema: Scripting extension to XML

June 26, 2011

An XML Schema is an extension to XML which describes the structure of an XML document. Prior knowledge of XML and HTML is required. One of the greatest strength of XML Schemas is the support for data types. It is easier to describe allowable document content and validate the correctness of data. Besides, it is [...]

Read the full article →

XQuery with XML

June 8, 2011

XQuery is to XML what SQL is to database tables and is being widely used in association with XML for web programming. Prior knowledge of HTML and XML is required to have a firm grip on XQuery. XQuery is mainly designed to query XML data – not just XML files, but anything that can appear [...]

Read the full article →

XPath with XML

June 7, 2011

XPath is used to navigate through elements and attributes in an XML document, so to utilize it, you would need prior knowledge of XML. XPath is a major element in W3C’s XSLT standard – and XQuery and XPointer are both built on XPath expressions. XPath uses path expressions to select nodes or node-sets in an [...]

Read the full article →