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> 


XML and Perl
XML and Perl
ISBN: 0735712891
EAN: 2147483647
Year: 2002
Pages: 145

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net