XSLT 1,0 and Arrays
Posted: Thu Jun 07, 2018 12:25 am
Hi EveryBody, I am working with XSLT 1.0 because it's the only release supported by Visual Studio and i'm having problems with the arrays, I explain in most detail,
I have the following string: http://www.enterprise.com/data/department/document.xml
and I need to access to document.xml and because the string has not always the same size and content I have created an SPLIT function (tokenize is not valid in XSLT 1.0) and taking the character '/' it creates an Array called myArray but the problem is that once created myArray it appears with dimension 0 and count(myArray) yields 1 so something as myArray[2] doesn't work, I try to obtain document.xml by myArray[count(myArray)] but also don't work.
Any suggestion
I have the following string: http://www.enterprise.com/data/department/document.xml
and I need to access to document.xml and because the string has not always the same size and content I have created an SPLIT function (tokenize is not valid in XSLT 1.0) and taking the character '/' it creates an Array called myArray but the problem is that once created myArray it appears with dimension 0 and count(myArray) yields 1 so something as myArray[2] doesn't work, I try to obtain document.xml by myArray[count(myArray)] but also don't work.
Any suggestion