See other News & Comment articles from xslt variable assignment.
XSLT is a declarative programming language while assignment and in particular reassignment to variables is a concept of procedural programming assuming some sequential execution order of statements
11 What is XSLT This specification defines the syntax and semantics of the XSLT 20 language The term stylesheet reflects the fact that one of the important roles of XSLT is to add styling information to an XML source document by transforming it into a document consisting of XSL formatting
I have the following XSL file from the DCM4CHEE DICOM project and I was trying to adjust it slightly The code Im actually trying to get working is commented out but even the variable assignment
This specification defines the syntax and semantics of XSLT which is a language for transforming XML documents into other XML documents XSLT is designed for use as part of XSL which is a stylesheet language for XML In addition to XSLT XSL includes an XML vocabulary for specifying formatting
xslt and things it cant do xslresultdocument doesnt update a file it creates a new file overwriting any previous file at the same location