can array\'s be created and used in xslt? If so are there suitable examples online to study? If not is there a way to store values in a way that mimics an array?
No, not as such. The closest concept is node-sets, which are collections of nodes. Whenever the result of a select is a number of nodes, you get a node-set. These can be accessed with a index notation (starting with 1), so the first element of the node-set can be accessed with notation such as selectedNodes[1].