[KLUG Members] XSLT Transforms

Adam Williams members@kalamazoolinux.org
Mon, 6 Jan 2003 16:36:30 -0500 (EST)


The XSLT transforms presentation from 2002 isn't on the web site. :(

I've used XML quite a bit, but never XSLT before.  Anyone know of a good 
straight forward intro with examples? (Unless someone wants to walk 
through it on the list).

I've got
<?xml version="1.0"?>
<customer_price_matrix_report>
  <salesperson name="" mail="" customercount="0"/>
  <salesperson name="" mail="" customercount="41">
    <customer name="1ST AYD CORPORATION" company="ME" 
      number="10225" city="ELGIN" state="IL"/>
     <customer name="ASC INCORPORATED" company="ME" 
       number="10421" city="SOUTHGATE" state="MI"/>
     <customer name="CITY OF STURGIS" company="ME" 
       number="10268" city="STURGIS" state="MI">
        <oem_discount oem="" captive="1.1" noncaptive="1.0" 
         user="sswonk    " date="2001-03-20 12:09"/>
       <oem_discount oem="AAA" captive="1.0" noncaptive="1.0" 
         user="sswonk    " date="2001-03-20 12:09"/>
      </customer>
     <customer name="CONVENTION &amp; SHOW SERVICES" company="ME" 
       number="10229" city="LINCOLN PARK" state="MI"/>
     <customer name="CPC GROUP GRAND RAPIDS" company="ME" 
       number="11068" city="FLINT" state="MI"/>
     <customer name="DAVID A KUIPER" company="ME" number="10124" 
       city="JENISON" state="MI"/>
     <customer name="DELTA CHARTER TOWNSHIP" company="ME" 
       number="11300" city="LANSING" state="MI"/>
     <customer name="FEDEX GROUND PACKAGE SYSTEM" company="ME" 
       number="11230" city="PITTSBURGH" state="PA"/>
    </salesperson>
 </customer_price_matrix_report>

and I'd like to transform it into HTML, PDF, etc.. something pretty.  As 
you can see salesperson has 0..n customer entries,  and a customer has 
0..n oem discount entries.

Any pointers would be appreciated,  in a bit of a time crunch.