R
RolfK
Dear ALL,
How can I do this best in XSLT2.0:
Imagine I have a value from element/@attribute which represents an
integer.
With this integer I would like to choose a value from a list like this
('red', 'blue' , 'green' )
The list is pre-defined and stored in some global variable.
How to acces it without long xsl:choose / when or if statements ?
And what about there is no value returned from element/@attribute ?
(In that case I would like to get a default value e.g. 'white' )
I guess there might be a nice function in xslt2, but I did not find
one yet.
Thanks a lot
Rolf
How can I do this best in XSLT2.0:
Imagine I have a value from element/@attribute which represents an
integer.
With this integer I would like to choose a value from a list like this
('red', 'blue' , 'green' )
The list is pre-defined and stored in some global variable.
How to acces it without long xsl:choose / when or if statements ?
And what about there is no value returned from element/@attribute ?
(In that case I would like to get a default value e.g. 'white' )
I guess there might be a nice function in xslt2, but I did not find
one yet.
Thanks a lot
Rolf