FIT2043 Lecture Notes - Lecture 11: Xslt, Xml
![](https://new-preview-html.oneclass.com/OoAwBLpx4XaZjRRp5ge1j1rVR07geYJ8/bg1.png)
L11 - More XSLT
XML Modes
● Is an optional attribute that goes on templates
● XSLT picks the most specific match
XSLT Variables & Parameters
● Variables
○ defined inside the style sheet
○ Useful whenever a value is used many times
● Parameters
XSLT Functions
● document()
○ Lets you access to documents other than that from which the current context
node comes
○ Can use multiple XML source documents
● key()
○ Used with xsl: key to provide an indexing mechanism
● format-number()
○ Side to provide fine control of how you display numbers
● generate-id()
○ Generate ID attributes in the result tree - useful for create links between parts
of the result documents
find more resources at oneclass.com
find more resources at oneclass.com