The following samples correspond to the "Shedding a little light on XML" Q&A column for the September 2001 XML Journal.

Contact info:

Name:David Silverlight from Infoteria
Emails:
DSilverlight@Infoteria.com
HeadGeek@xmlpitstop.com
DavidSilverlight@hotmail.com

URLs:
http://www.infoteria.com/xsl
http://www.xmlpitstop.com

Question PushVsPull: HelloWorld using the PULL Method

file Description
HelloWorldPull.xsl XSL Stylesheet which uses the PULL method for displaying Hello World.
HelloWorldPull.xml XML Document containing the greeting, "Hello World"
HelloWorldPullOutput.htm Example of the HTML output that will result from transforming HelloWorldPull.xml with HelloWorldPull.xsl
HelloWorldPull.zip All files for the HelloWorldPull example


Question PushVsPull: HelloWorld using the PUSH Method

file Description
HelloWorldPush.xsl XSL Stylesheet which uses the PUSH method for displaying Hello World.
HelloWorldPush.xml XML Document containing the greeting, "Hello World"
HelloWorldPushOutput.htm Example of the HTML output that will result from transforming HelloWorldPush.xml with HelloWorldPush.xsl
HelloWorldPush.zip All files for the HelloWorldPush example


Question NodeSets: This stylsheet demonstrates using the "intersection" template to find all elements who have BOTH:
a) A child 'purchase' element of type = 'ProductA' and Quantity > 10
b) A child 'purchase' element of type = 'ProductB' and Quantity > 10

NOTE: This template uses msxml:node-set(), which is supported only by msxml parsers.

file Description
10orMoreProductAandProductB.xml XML file containing basic product data for this sample
10orMoreProductAandProductB.xsl XSLT file used to demonstrate the use of the Intersection template (slightly modified from exslt.org) to find the intersection of the nodeset containing "Product A" elements and the nodeset containing "Product B" elements
10orMoreProductAandProductBOutput.htm HTML file containing the output generate from transforming 10orMoreProductAandProductB.xml with 10orMoreProductAandProductB.xsl.
10orMoreProductAandProductB.zip All files for this sample.