How I Created It:
This is actually from a tutorial from the text book, "New Perspectives on XML, Comprehensive, 3rd Edition". I used the tutorial as a guide to create an XML document using XSLT variables. In the tutorial, I created a product page that contained reviews, a price, a product ID, and images. I used various variables to create the results and templates.
Here is a list of most of the elements and attributes that I used, many of them for the first time:- Declare variables in XML / XSLT, such as the xsl:variable
- The document() function that is used to access the contents of an external XML file
- The xsl:include function
- The xsl:copy-of element
- The sum() function
- The count() function, which is similar to that of SQL
What I Learned:
I learned to create more advanced XSLT features to create templates and query results using various variables and functions.