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

About the Author: If you have any questions regarding any of these samples, please contact me at : HeadGeek@xmlpitstop.com DSilverlight@Infoteria.com

Temperatures for: 01/21/2001 - 01/28/2001

City:

Split(): "Splitting XML elements into smaller XML Elements"

file Description
SplitOutput.htm HTML file used to demonstrate the output from the Split template sample
Employees.xml XML Employee data used to demonstrate the Split() template
Split.xml Template used for splitting an element into smaller elements.
ShowSplit.xsl XSLT file used to demonstrate the Split() template in action.

TrimL(): "Removing the leading spaces from a string"

file Description
TrimLOutput.htm HTML file used to demonstrate the output from the TrimL template sample
Employees.xml XML Employee data used to demonstrate the TrimL template.
ShowTrimL.xsl XSLT file used to demonstrate the TrimL template in action
TrimL.xsl The TrimL() template used for removing the leading spaces from a string.

TrimL(): "Removing the trailing spaces from a string"

file Description
TrimROutput.htm HTML file used to demonstrate the output from the TrimR template sample
Employees.xml XML Employee data used to demonstrate the TrimR template.
ShowTrimR.xsl XSLT file used to demonstrate the TrimL template in action
TrimR.xsl The TrimR() template used for removing the trailing spaces from a string.

Loop(): "Repeating a string X number of times"

file Description
Loop.xsl XSLT file used to demonstrate the repeating of a string X number of times.
LoopOutput.htm HTML file used to demonstrate the output from the Loop template sample

Replace(): Using a named template to do substring replacement."

file Description
Replace.xsl XSLT file used to demonstrate substring replacement
ReplaceOutput.htm HTML file showing the results of the substring replacement
Replace.zip ZIP file containing all of the files for this sample.

LineFeed_To_BR(): "Transformation of linefeed characters to HTML <br> tags"

file Description
LF_to_BR.xsl XSLT file used for transforming linefeed characters to <br> tags
LF_to_BROutput.htm HTML file used to demonstrate the Linefeed to BR functionality

Min(): "Finding the minimum element in a nodeset"

file Description
ShowMinOutput.htm HTML file used to demonstrate the output from the Min template sample
Min.xsl The Min() template used for finding the minimum value in a nodeset
ShowMin.xsl Template used for demonstrating the use of the Min() template
Temperatures.xml XML Temperature data used for demonstrating the Min() template

Max(): "Finding the Maximum element in a nodeset"

file Description
ShowMaxOutput.htm HTML file used to demonstrate the output from the Max()n template sample
Max.xsl The Max() template used for finding the maximum value in a nodeset
ShowMax.xsl Template used for demonstrating the use of the Max() template
Temperatures.xml XML Temperature data used for demonstrating the Max() template