24.08.2015 Views

Oxygen XML Author plugin 13.2.0

Oxygen XML Author plugin 13.2.0

Oxygen XML Author plugin 13.2.0

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

toFindThe searched substring.<strong>Author</strong> Developer Guide | 249• oxy_lastindexof ( text , toFind , fromOffset )The search starts from fromOffset index. Returns the index within text string of the last occurrence of the toFindsubstring, searching backwards starting from the fromOffset index.texttoFindfromOffsetText to search in.The searched substring.The index from which to start the search backwards.oxy_lastindexof('abcdbc', 'bc') returns 4.oxy_lastindexof('abcdbccdbc', 'bc', 2) returns 1.The oxy_xpath() FunctionThis function has one signature:• oxy_xpath ( expression )Evaluates the given XPath expression and returns the result.Note: The entities are ignored when the XPath expressions are evaluated.expressionXPath expression to be evaluated.The following example counts the number of words from a paragraph and displays the result in frontof it:para:before{ content: concat("|Number of words:",oxy_xpath("count(tokenize(normalize-space(string-join(text(), '')),' '))"), "| "); }Arithmetic FunctionsYou can use any of the arithmetic functions implemented in the java.lang.Math class:http://download.oracle.com/javase/6/docs/api/java/lang/Math.html.In addition to that, the following functions are available:Syntaxoxy_add(param1, ... , paramN,'returnType')oxy_subtract(param1, ..., paramN,'returnType')oxy_multiply(param1, ..., paramN,'returnType')oxy_divide(param1, param2,'returnType')oxy_modulo(param1, param2,'returnType')DetailsAdds the values of all parameters from param1 to paramN.Subtracts the values of parameters param2 to paramN from param1.Multiplies the values of parameters from param1 to paramN.Performs the division of param1 to param2.Returns the reminder of the division of param1 to param2.Note: The returnType can be 'integer', 'number', or any of the supported CSS measuring types.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!