Inlines.
How to get the values in the loop in same line. <?for-each:xdoxslt:foreach_number($_XDOCTX,1,3,1)?> <?position()?> <?end for-each?> the result is 1 2 3 Is there way to make the result look like this: 1 2 3 yes, it is. use inline context , to get this way <?for-each@inlines:xdoxslt:foreach_number($_XDOCTX,1,3,1)?> <?position()?> <?end for-each?>