I would like to know if there is a way to view all the Global Parameters in XSLT without explicitly knowing the name.
ie
<xsl:param name="T"/>
In my cms I have a text box whereby I may enter “T=whatever,A=dave” These parameters are then added programmaticly for access within the XSLT document. Now supposing i do not have source access, is there any way to expose the parameters name and value without knowing the name to begin with?
Kind Regards,
Samuel Lilleker
You must already have an
xsl:paramdefined with the same name in your XSLT transformation — otherwise a value cannot be passed to non-existent parameter.And there is no-way to find the (dynamic) values of global parameters if you don’t know the parameter names statically.
It is possible to have something like this:
But this selects only the compile-time values of the parameters and could return something like:
which, of course is not the result of actually applying the templates.
A correct way to pass unknown name-value pairs as parameters is to make them part of a single global parameter, such as: