Hi am build a generic template to list my content. But the Content may be sorted on different @\'s or node()\'s. So want to pass the xPath in.
This is by design. The select
attribute is the only one which doesnt accept AVTs (Attribute - Value Templates).
The usual solution is to define a variable with the name of the child element that should be used as sort key. Below is a small example:
When this transformation is applied on the following XML document:
2
4
5
6
1
7
the wanted result is produced:
5
6
2
4
1
7