contains

Contains - XpressDox

This function is used to test for a string anywhere inside another string, and would appear inside a command such as If, When or Iif.   Example: «If(contains(Surname,'prmzl'))»«Surname» is not an English name.«End()»   Related articles: Read more about testing various parts of a string here  

EndsWith - XpressDox

EndsWith tests the end of a string: «If(EndsWith(Surname,'-Smith')» «Surname» is a double-barrelled name. «SetV('FirstPart',substring(Surname,1,string-length(Surname) - 6))»«Comment(SetV(‘FirstPart’,string-before(‘-Smith’)) is equivalent)» «End()» «Name_of_Client»«If(not(EndsWith(ToLower(Name_of_Client),'s')))»'s«Else()»'«End()»

StartsWith - XpressDox

The StartsWith function (an XSLT function) is used to test whether a string starts with a given string: «If(StartsWith(Surname,'van ')»«Title» «Surname» is probably of Dutch descent.«End()» «If(StartsWith(Surname,'van ')»«Setv('LastPart',substring-after(Surname,'van '))»«End()» In previous versions this command was known as starts-with. Backward compatibility ensures that XpressDox will still recognize this command.

SubstringAfterLast - XpressDox

SubstringBeforeLast and SubstringAfterLast These two functions help with manipulation of strings like file paths or IP addresses which have multiple occurrences of a delimiter. For the following examples, assume the data element DocFilePath contains ‘C:\Documents\XpressDox\WordFile.docx’. SubstringBeforeLast can be used to get the name of folder from a full file path,...

SubstringBefore - XpressDox

Working with strings in XpressDox templates SubstringBefore tests for a string which occurs in another string, but before a delimeter inside the string. «Comment(This example includes SubstringBefore and SubstringAfter)» The first name is «SubstringBefore(FullNames,' ')» and the last part of the name is «SubstringAfter(FullNames,' ')»   Read more about working...

SubstringBeforeLast - XpressDox

SubstringBeforeLast and SubstringAfterLast These two functions help with manipulation of strings like file paths or IP addresses which have multiple occurrences of a delimiter. For the following examples, assume the data element DocFilePath contains ‘C:\Documents\XpressDox\WordFile.docx’. SubstringBeforeLast can be used to get the name of folder from a full file path,...

Testing parts of a string - XpressDox

Working with strings in XpressDox templates   StartsWith The StartsWith function is used to test whether a string starts with a given string: «If(StartsWith(Surname,'van ')»«Title» «Surname» is probably of Dutch descent.«End()» «If(StartsWith(Surname,'van ')»«SetV('LastPart',substring-after(Surname,'van '))»«End()» In previous versions this command was known as starts-with. Backward compatibility ensures that XpressDox will still...

Using XSLT functions - XpressDox

XpressDox uses XSLT technology to insert data elements into Merge Fields. This means that a vast amount of functionality is available to the experienced user, especially the XSLT functions, which are used to format data. XpressDox functions and XSLT functions can be mixed in one Merge Field
Loading...