functx:format-as-title-en
Moves title words like “the” and “a” to the end of strings
Description
The functx:format-as-title-en function treats a sequence of strings like titles, moving the words “A”, “An” and “The” to the end.
Parameters |
Description |
---|---|
titles:string() |
the titles to format |
Examples
XPath |
Results |
---|---|
functx:format-as-title-en((‘A Midsummer Night’’s Dream’, ‘The Merchant of Venice’, ‘Hamlet’)) |
(‘Midsummer Night’s Dream, A’, ‘Merchant of Venice, The’, ‘Hamlet’’’Midsummer Night’s Dream, A’, ‘Merchant of Venice, The’, ‘Hamlet’) |