XpressDox Help Center

Use Google To Find Help Fast, e.g. xpressdox choosefromlist

Press Getting Started in the XpressDox toolbar for basic template development
Watch the tutorial videos
View command help from list of commands
Press F1 for help on a command in the Command Editor
Email support@xpressdox.com for assistance

Handling gender

Handling gender

Suppose you have a document which you want to personalise as far as pronouns are concerned. In other words, instead of having “he/she” in many places, you want to have only “he” or “she” depending on the sex of the party concerned. This could be done by determining the sex up front at the beginning of the template like this:


Using «When()» for singular values

And then in the body of the template, whenever the document would previously have had “he/she”, put:

«When(PartyIsMale = “true”,he,she)»

While this is nice, it is a bit tedious to type «When(PartyIsMale = “true”,he,she)» wherever it is required. If there are many places where “he/she” is to be replaced, then one way to create a shortcut is to use a variable, like this:

«ChooseUsingCheckBox (PartyIsMale)»
«If(PartyIsMale = “true”)»

Then, in all the places where “he/she” is to be replaced, instead of using the “When” above, just type:


Even nicer is that you can handle “him/her” and “his/her” in the same way:

«ChooseUsingCheckBox (PartyIsMale)»
«If(PartyIsMale = “true”)»

Then the following becomes possible:

If «GetV(“he”)» makes a written request, then «GetV(“his”)» copy will be sent directly to «GetV(“him”)».

Using «Gender()»

Particularly when there might be more than one party being referred to, then the document in its original form might have had “he/she/they” or “his/her/their” scattered throughout the document.

Probably there will have been some place in the document where the parties were enumerated, and hence a snippet of the document might have been:

The parties to the agreement are:

«If(position() > 1)»

«PartyName» «ChooseFromRDBList(PartyGender,Male,Female,Entity)»(«PartyGender»)

Then at some point later on in the document, outside the scope of the ForEach the document has wording like:

… ensure that his/her/its/their contact details are provided.

The Gender function can be used as follows:

… ensure that «Gender(PartyGender,count(Party),'his,her,its,their')» contact details are provided.

Please see the article The Gender Function for additional interesting information on how to use Gender.

Leave a Reply