Skip to Content
XML and Perl
book

XML and Perl

by Mark Riehl, Ilya Sterin
October 2002
Intermediate to advanced content levelIntermediate to advanced
400 pages
9h 40m
English
Sams
Content preview from XML and Perl

Exercises

  1. Modify the XSLT stylesheet used in the XML::LibXSLT example shown in Listing 8.8 to filter one of the fields from the output HTML table. Hint: look at the XSLT stylesheet that was used to perform the filtering in the example shown in Listing 8.12.

  2. Modify the XML::Sablotron example in Listing 8.12, so that instead of removing the proprietary elements, the character data inside the proprietary elements is replaced with the string “PROPRIETARY.” So, the customer elements in the output document would look like this:

    <customer account_number="id_1"> 
       <name>Microsoft Corporation</name> 
       <poc>Bill Gates</poc> 
       <years>10</years> 
       <revenue>PROPRIETARY</revenue> 
       <telephone_num>PROPRIETARY</telephone_num> 
    </customer> 
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

Perl and XML

Perl and XML

Erik T. Ray, Jason McIntosh
Programming Web Services with Perl

Programming Web Services with Perl

Randy J. Ray, Pavel Kulchenko
Mastering Perl

Mastering Perl

brian d foy
Perl by Example

Perl by Example

Ellie Quigley

Publisher Resources

ISBN: 0735712891Purchase book