The NEW XpressDox Version 14 is now available!

Edit Content
Click on the Edit Content button to edit/add the content.

position – XpressDox

XpressDox templates make use of XSLT functions

The position() function is an XSLT function, but can be used in an XpressDox template to return the position of a repeated item. It is a numeric value, where 1 is the number of the first repeated item.

This article provides more background on using XSLT functions in XpressDox.

 

Examples of usage:


«Comment(Insert the positions of each repeated child)»
«ForEach(Child)»
«position()». «ChildName»
«End()»

«Comment(Capture a name for each child and then print only the first child.
Because the position is a numerical value it can also be written like this)»
«ForEach(Child)»
«CaptureDataElement(ChildName)»
«End()»
«Child[1]»

«Comment(Use position in an If statement. A template should be included for each party
and it should begin on a new page. Don’t print an empty blank page at the end.)»
«ForEach(Party)»
«PartyName»
«IncludeTemplate(templateName)»
«if(position() != last())»
[Ctrl + Enter to insert a PAGE BREAK]
«End(if position not last)»
«End(for each)»

 

 

Table of Contents