books
Free Books / Computers / Practical mod_perl /

previous page: E.2.1. If Something Goes Wrong
  
page up: Practical mod_perl | by Stas Bekman and Eric Cholet
  
next page: E.2.3. XPath

E.2.2. How it Works?




Description

This section is from the "Practical mod_perl" book, by Stas Bekman and Eric Cholet. Also available from Amazon: Practical mod_perl

The stylesheet above specifies how the various tags work. The ASP <% %>syntax delimits Perl code from HTML. You can execute any code within the stylesheet.

In this example, we use the special XPathScript $t hash reference, which specifies the names of tags and how they should be output to the browser. There are several options for the second level of the hash, and here we see two of those options: pre and post. pre and postspecify (respectfully) what appears before the tag and what appears after it. These values in $t take effect only when we call the apply_templates( ) function, which iterates over the nodes in the XML, executing the matching values in $t.

 

Continue to:

  • prev: E.2.1. If Something Goes Wrong
  • Table of Contents
  • next: E.2.3. XPath

Books by Stas Bekman:















TOP
previous page: E.2.1. If Something Goes Wrong
  
page up: Practical mod_perl | by Stas Bekman and Eric Cholet
  
next page: E.2.3. XPath

Topics

  • Animals
  • Architecture
  • Arts
  • Business
  • Computers
  • Crafts
  • Fairy Tales
  • Finance
  • Flora and Plants
  • Cooking
  • Gardening
  • Health and Healing
  • History
  • Home Improvements
  • Languages
  • New Age
  • Novels
  • Real Estate
  • Reference
  • Religion
  • Science
  • Society
  • Sports
  • Travel
  • Outdoors


Search

My Books

Headaches Begone! A Systemic Approach To Healing Your Headaches
Don't Let Your Bike Seat Ruin Your Sex Life Book

Discover

  • Answers FAQ

[ Privacy Policy | Terms of Use | About Us | Search ]

© 2007-2021 StasoSphere.com