1) To access an element in xml
doc, do we not need to "select" root node first ? This is what I came across in the book "using xslt" by Michael Floyd
class is document node and student is child node of class.
If I want to access student node, do I not need to address class node first ? I was reading an article which stated " every xslt doc must have a root node"
In this case root node is addressed.
In this xslt code, root node is not addressed. Is this correct ?
Again, in this code, root node is not addressed. So will this code work ? If yes, then does it mean that addressing the root node syntax is not required ?
Please explain the rule for root node , when is it required to address the root node and when not.
2) I tried to use these codes in Awgar stone xslt processor. But when I select the xml , xslt and output files and select to transform , I get an error message
"The version attribute is required at this location.
Line 1 : <?xml encoding="UTF-8" version="1.0"?>."
I am not sure, why do I get this error. I could not
test it at my end.