M
MC
Hi to all,
I would like to use in a XSL stylesheet an array variable which is
defined in a Java program.
For example, in my program, i defined a tab variable
String[] tab = {"first", "second", "third"};
which i pass to the XSLT processor like this :
transform.setParameter("tab", tab);
In my XSL stylesheet, i declare tab variable with <xslaram
name="tab"/> and I would like for example to get the second element of
the tab.
Is it possible ? I try <xsl:value-of select="$tab[1]"/> but I've an error.
More generally, is it possible to use in XSL stylesheet arrays objects,
Hashmap, .. and JavaBeans ?
Thanks a lot for your answers
Marie
I would like to use in a XSL stylesheet an array variable which is
defined in a Java program.
For example, in my program, i defined a tab variable
String[] tab = {"first", "second", "third"};
which i pass to the XSLT processor like this :
transform.setParameter("tab", tab);
In my XSL stylesheet, i declare tab variable with <xslaram
name="tab"/> and I would like for example to get the second element of
the tab.
Is it possible ? I try <xsl:value-of select="$tab[1]"/> but I've an error.
More generally, is it possible to use in XSL stylesheet arrays objects,
Hashmap, .. and JavaBeans ?
Thanks a lot for your answers
Marie