I hope the following helps: <xsl:template match="numbers"> indicates that we want to work with the <numbers> node(s). After that is a list from A through N. The left of "=" describes what we want to do in terms that we can understand outside of xsl. The right of "=" shows how this is done in xsl. For example: <xsl:value-of select="x+y"/> says to take the value of the nodes <x> and <y> (remember we are dealing with children of <numbers> ), and add them together to get the desired result. In this case we would get an out put of 7.2. I hope this helps.
Joined: Feb 06, 2001
Thanks for the explanation. But I can't get any output.
Joined: Dec 08, 2000
I am not sure how to help you get output. I am fairly new to XML also, but I can tell you what I did. I followed an example in "Beginning XML" from Wrox Press which instructed me to use XT, which is available from http://www.jclark.com/xml/xt.html, as the transformation engine. I then ran xt.exe from the command line: xt <name of xml file> <name of xsl file> <optional: name of output file> If you leave out the output file the result of the transformation will appear in the command prompt window. This worked for me and gave me the results I expected. I would suggest finding a simple example of using XSLT in a book or on a website and try to duplicate it's results, then apply that to your xml and xsl files to see what happens. Good luck!