October 2002
Intermediate to advanced
400 pages
9h 40m
English
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.
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>