In USoft Blend, in contexts where an XPath expression is legal, you can use parenthesised expressions that call one of the following:
•A USoft Blend function. •An XPath function. From a syntax point of view, a call to a USoft Blend function may be recognised by the presence of an explicit namespace prefix as, for example, "dates:" in:
<pc:value-of select="dates:ShowInputFormats" />
By contrast, a call to an XPath function may be recognised by the absence of an explicit namespace prefix as, for example, in:
<pc:value-of select="concat( 'A', 'B' )" />
When USoft Blend directives are executed, they call underlying programmed functions that access the source code that implements USoft Blend.
You can see how this is done by inspecting the XSLT stylesheet :
usoft-install-dir\xsl\Util\Batch.1.0.xsl
Alternatively, you can get a full list of USoft Blend functions by using the "functions" Blend command line option:
> usoft-bindir\ublendit.exe functions
The most important USoft Blend functions are documented in the Functions section.
|
In a USoft Blend context, in an XPath expression content, all the 27 XPath 1.0 functions are implicitly available:
Node set functions
|
String functions
|
Boolean functions
|
Number functions
|
count()
|
concat()
|
boolean()
|
ceiling()
|
id()
|
contains()
|
false()
|
floor()
|
last()
|
normalize-space()
|
lang()
|
number()
|
local-name()
|
starts-with()
|
not()
|
round()
|
name()
|
string()
|
true()
|
sum()
|
namespace-uri()
|
string-length()
|
|
|
position()
|
substring()
|
|
|
|
substring-after()
|
|
|
|
substring-before()
|
|
|
|
translate()
|
|
|
|
See also
Guide to expressions and data types
Literal expressions
Dates
string literals
Path expressions
XML expressions
XPath expressions
Node set expressions
Booleans
Strings
Numbers
Function calls
Variable references
Implicit XPath datatype conversion
Evaluated expressions vs. literals
SQL expressions
|