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?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
With XSLT 2.0 you can model any data type you want to.
As example:
With any input, output:
In XSLT 1.0 there is not Temporaly Result Tree data type. There is a Result Tree Fragment data type that does not allow node-set operator. So, the only way to go is with extensions functions: in this case
node-set()from EXSLT (MSXSL has a built-innode-set()extension, also).So, in XSLT 1.0 without extensions you can have only inline data model, or by params or by external document. As example:
Result, with any input:
Only if you want to, I can provide you a XSLT 1.0 plus extensions example (It’s not standar…)