Skip to Content
Special Edition Using XSLT
book

Special Edition Using XSLT

by Michael Floyd
January 2002
Intermediate to advanced
480 pages
11h 5m
English
Que
Content preview from Special Edition Using XSLT

Processing Database Records

In our example, the product data came from a static file written by a human being. Sometimes, XML will be generated on the fly from the contents of a database or the results of an algorithm. The result of a database query will be either a single database row, as shown in Listing 6.11, or a list of records (perhaps the results of a search), as shown in Listing 6.12.

Listing 6.11. A Database Record in XML
<?xml version=”1.0” ?> 
<person> 
  <name>Alaric B. Snell</name> 
  <email>alaric@alaric-snell.com</email> 
  <url>http://www.alaric-snell.com/</url> 
</person> 
Listing 6.12. A Database Query Result in XML
 <?xml version=”1.0” ?> <results> <person> <name>Alaric B. Snell</name> <email>alaric@alaric-snell.com</email> <url>http://www.alaric-snell.com/</url> ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Special Edition Using XML, Second Edition

Special Edition Using XML, Second Edition

- et al. David Gulbransen
XML for Publishers

XML for Publishers

Keith Fahlgren

Publisher Resources

ISBN: 0789725053Purchase book