March 30, 2011
User Reference
XpressDox gives quite a lot of power to template authors in controlling the layout of the interview for a template. For example, the layout commands for an email address might look something like this: <<Caption(EmailAddress,Email address for correspondence)?Enter the email address or choose one from the list.>><<ChooseFromSamples(EmailAddress,,jlsmith@ipprovider.com,egjones@inkpen.com,mcontrary@inkpen.com)>><<Heading(EmailAddress,|^b^@Navy@CONTACT INFORMATION)>> <<Required(EmailAddress)>> <<SetInitialValue(EmailAddress,audrey@inkpen.com)>> <<Rule(EmailAddress,hard,IsEmailAddress,’The value is not a [...]
Tagged as:
Define
Read the full article →
January 22, 2011
User Reference
1. The starts-with function (an XSLT function) is used to test whether a string starts with a given string: <<If(starts-with(Surname,’van ‘)>><<Title>> <<Surname>> is probably of Dutch descent.<<End()>> <<If(starts-with(Surname,’van ‘)>><<Setv(‘LastPart’,substring-after(Surname,’van ‘))>><<End()>> 2. 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()>> 3. contains (an XSLT function) [...]
Tagged as:
contains,
EndsWith,
starts-with,
string-length,
substring,
substring-after,
substring-before
Read the full article →