The upper-case() function

Smartsite 7.4 - ...

The upper-case() XPath 2.0 function converts a string to upper case.

XML CopyCode image Copy Code
string fn:upper-case(arg)

Parameters:

  • arg: a node reference or string literal.

Example

XML CopyCode image Copy Code
<html xmlns="http://www.w3.org/1999/xhtml" 
 xmlns:xf="http://www.w3.org/2002/xforms" 
 xmlns:exf="http://smartsite.nl/namespaces/xforms/1.0"
 xmlns:fn="http://www.w3.org/2005/xpath-functions">
 <head>
  <title>Example</title>
  <xf:model>
   <xf:instance>
    <data xmlns="">
     <tekst>www.formulierenserver.nl</tekst>
    </data>
   </xf:instance>
  </xf:model>
 </head>
 <body>
  <xf:group>
    <xf:output value="fn:upper-case('metadata')" />
    <xf:output value="fn:upper-case(tekst)" />
  </xf:group>
 </body>
</html>

The result will be:

METADATA
WWW.FORMULIERENSERVER.NL

Namespace

This function is available within the XPath 2.0 namespace (http://www.w3.org/2005/xpath-functions).