SlideShare ist ein Scribd-Unternehmen logo
1 von 21
JSP Standard Tag Libraries
Overview
 Introduction to JSTL
 Categories
 JSTL Core
 JSTL Formatting
 JSTL SQL
 JSTL XML
 JSTL functions
2J S T L
• JSP Standard Tag Library(JSTL) is a standard library of custom
tags. The JSTL contain several tag that can remove scriptlet
code from a JSP page.
• JSP Standard Tag Library (JSTL) is the standard tag library that
provides tags to control the JSP page behavior, iteration and
control statements, internationalization tags, and SQL tags.
• To use JSTL the jar files like Jstl.jar , standard.jar files are
necessary.
What is JSTL?
3J S T L
5 categories
• JSTL Core.
• JSTL Formatting.
• JSTL SQL.
• JSTL XML.
• JSTL functions.
4J S T L
Library URI Prefix
Core http://java.sun.com/jsp/jstl/core c
XML Processing http://java.sun.com/jsp/jstl/xml x
Formatting http://java.sun.com/jsp/jstl/fmt fmt
Database Access http://java.sun.com/jsp/jstl/sql sql
Functions http://java.sun.com/jsp/jstl/functions fn
JSTL URIs and Default Prefixes
5J S T L
JSTL core:
• Core tags provide support for iteration, conditional logic,
catch exception, url, forward or redirect response etc. To use
JSTL core tags, we should include it in the JSP page like below.
• <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"
%>
6J S T L
JSTL Core Tags
Tags Description
<c:out>
To write something in JSP page, we can use EL also with
this tag
<c:import> Same as <jsp:include> or include directive
<c:redirect> redirect request to another resource
<c:set> To set the variable value in given scope.
<c:remove> To remove the variable from given scope
<c:catch> To catch the exception and wrap it into an object.
<c:if>
Simple conditional logic, used with EL and we can use it
to process the exception from <c:catch>
<c:choose>
Simple conditional tag that establishes a context for
mutually exclusive conditional operations, marked by
<c:when> and <c:otherwise>
7J S T L
Core Tags Library
Tag Descriptor
<c:when>
Sub tags of <c:choose> that includes its body if its
condition evaluates to ‘true’.
<c:otherwise>
Sub tags of <c:choose> that includes its body if its
condition evaluates to ‘false’.
<c:forEach> for iteration over a collection
<c:forTokens> for iteration over tokens separated by a delimiter.
<c:param> used with <c:import> to pass parameters
<c:url>
to create a URL with optional query string
parameters
8J S T L
JSTL Formatting
• These tags are provided for formatting of Numbers, Dates and
i18n support through locales and resource bundles. We can
include these tags in JSP with below syntax
• <%@ taglib uri="http://java.sun.com/jsp/jstl/fmt"
prefix="fmt" %>
9J S T L
Format Tags
Tags Description
<fmt:formatNumber>
To render numerical value with specific
precision or format.
<fmt:parseNumber>
Parses the string representation of a
number, currency, or percentage.
<fmt:formatDate>
Formats a date and/or time using the
supplied styles and pattern
<fmt:parseDate>
Parses the string representation of a date
and/or time
<fmt:bundle>
Loads a resource bundle to be used by its
tag body.
<fmt:setLocale>
Stores the given locale in the locale
configuration variable.
10J S T L
Format Tags
Tags Description
<fmt:setBundle>
Loads a resource bundle and stores it in the
named scoped variable or the bundle
configuration variable.
<fmt:timeZone>
Specifies the time zone for any time
formatting or parsing actions nested in its
body.
<fmt:setTimeZone>
Stores the given time zone in the time zone
configuration variable
<fmt:message> To display an internationalized message.
<fmt:requestEncodin
g>
Sets the request character encoding
11J S T L
JSTL SQL
• JSTL SQL Tags provide support for interaction with relational
databases such as Oracle, MySQL etc. Using SQL tags we can
run database queries, we include it in JSP with below syntax
• <%@ taglib uri="http://java.sun.com/jsp/jstl/sql" prefix="sql"
%>
12J S T L
SQL Tags
Tags Description
<sql:setDataSource>
Creates a simple DataSource suitable only for
prototyping
<sql:query>
Executes the SQL query defined in its body or through
the sql attribute.
<sql:update>
Executes the SQL update defined in its body or
through the sql attribute.
<sql:param>
Sets a parameter in an SQL statement to the specified
value.
<sql:dateParam>
Sets a parameter in an SQL statement to the specified
java.util.Date value.
<sql:transaction >
Provides nested database action elements with a
shared Connection, set up to execute all statements
as one transaction.
13J S T L
JSTL XML
• XML tags are used to work with XML documents such as
parsing XML, transforming XML data and XPath expressions
evaluation. Syntax to include XML tags in JSP page
• <%@ taglib uri="http://java.sun.com/jsp/jstl/xml" prefix="x"
%>
14J S T L
XML tags
Tags Description
<x:parse>
Use to parse XML data specified either via an
attribute or in the tag body.
<x:set >
Sets a variable to the value of an XPath
expression.
<x:if >
Evaluates a test XPath expression and if it is
true, it processes its body. If the test
condition is false, the body is ignored.
<x:forEach> To loop over nodes in an XML document.
<x:choose>
Simple conditional tag that establishes a
context for mutually exclusive conditional
operations, marked by <when> and
<otherwise>
<x:when >
Subtag of <choose> that includes its body if
its expression evalutes to 'true'
15J S T L
XML Tags
Tag Descriptor
<x:otherwise >
Subtag of <choose> that follows <when>
tags and runs only if all of the prior
conditions evaluated to 'false'
<x:transform >
Applies an XSL transformation on a XML
document
<x:param >
Use along with the transform tag to set a
parameter in the XSLT stylesheet
16J S T L
JSTL Functions
• JSTL tags provide a number of functions that we can use to
perform common operation, most of them are for String
manipulation such as String Concatenation, Split String etc.
Syntax to include JSTL functions in JSP page
• <%@ taglib uri="http://java.sun.com/jsp/jstl/functions"
prefix="fn" %>
17J S T L
Functions
Function Description
fn:contains()
Tests if an input string contains the specified
substring.
fn:containsIgnoreCase()
Tests if an input string contains the specified
substring in a case insensitive way.
fn:endsWith()
Tests if an input string ends with the specified
suffix.
fn:escapeXml()
Escapes characters that could be interpreted
as XML markup.
fn:indexOf()
Returns the index withing a string of the first
occurrence of a specified substring.
fn:join() Joins all elements of an array into a string.
18J S T L
Function Description
fn:replace()
Returns a string resulting from replacing in an
input string all occurrences with a given
string.
fn:split() Splits a string into an array of substrings.
fn:startsWith()
Tests if an input string starts with the
specified prefix.
fn:substring() Returns a subset of a string.
fn:substringAfter()
Returns a subset of a string following a
specific substring.
fn:substringBefore()
Returns a subset of a string before a specific
substring.
19J S T L
Tags Description
fn:toLowerCase()
Converts all of the characters of a string to
lower case.
fn:toUpperCase()
Converts all of the characters of a string to
upper case.
fn:trim()
Removes white spaces from both ends of a
string.
20J S T L
Thank you…
J S T L 21

Weitere ähnliche Inhalte

Was ist angesagt?

Java class 8
Java class 8Java class 8
Java class 8
Edureka!
 
3963066 pl-sql-notes-only
3963066 pl-sql-notes-only3963066 pl-sql-notes-only
3963066 pl-sql-notes-only
Ashwin Kumar
 
Executing Sql Commands
Executing Sql CommandsExecuting Sql Commands
Executing Sql Commands
phanleson
 

Was ist angesagt? (20)

Java class 8
Java class 8Java class 8
Java class 8
 
Core Java Programming Language (JSE) : Chapter XIII - JDBC
Core Java Programming Language (JSE) : Chapter XIII -  JDBCCore Java Programming Language (JSE) : Chapter XIII -  JDBC
Core Java Programming Language (JSE) : Chapter XIII - JDBC
 
Day2 xslt x_path_xquery
Day2 xslt x_path_xqueryDay2 xslt x_path_xquery
Day2 xslt x_path_xquery
 
Oracle: PLSQL Introduction
Oracle: PLSQL IntroductionOracle: PLSQL Introduction
Oracle: PLSQL Introduction
 
SQL
SQLSQL
SQL
 
ORACLE PL SQL
ORACLE PL SQLORACLE PL SQL
ORACLE PL SQL
 
JavaStates Simple Tutorial
JavaStates Simple TutorialJavaStates Simple Tutorial
JavaStates Simple Tutorial
 
Plsql
PlsqlPlsql
Plsql
 
Dynamic websites lec3
Dynamic websites lec3Dynamic websites lec3
Dynamic websites lec3
 
Database Programming
Database ProgrammingDatabase Programming
Database Programming
 
Oracle sql & plsql
Oracle sql & plsqlOracle sql & plsql
Oracle sql & plsql
 
26xslt
26xslt26xslt
26xslt
 
New T-SQL Features in SQL Server 2012
New T-SQL Features in SQL Server 2012 New T-SQL Features in SQL Server 2012
New T-SQL Features in SQL Server 2012
 
Xml & Java
Xml & JavaXml & Java
Xml & Java
 
MySQL Replication Evolution -- Confoo Montreal 2017
MySQL Replication Evolution -- Confoo Montreal 2017MySQL Replication Evolution -- Confoo Montreal 2017
MySQL Replication Evolution -- Confoo Montreal 2017
 
XSLT and XPath - without the pain!
XSLT and XPath - without the pain!XSLT and XPath - without the pain!
XSLT and XPath - without the pain!
 
3963066 pl-sql-notes-only
3963066 pl-sql-notes-only3963066 pl-sql-notes-only
3963066 pl-sql-notes-only
 
Executing Sql Commands
Executing Sql CommandsExecuting Sql Commands
Executing Sql Commands
 
Oracle 11G Development Training noida Delhi NCR
Oracle 11G Development Training noida Delhi NCROracle 11G Development Training noida Delhi NCR
Oracle 11G Development Training noida Delhi NCR
 
Java beans
Java beansJava beans
Java beans
 

Ähnlich wie JSP Standard Tag Library

Introduction to JSP
Introduction to JSPIntroduction to JSP
Introduction to JSP
Geethu Mohan
 
DataBase Connectivity
DataBase ConnectivityDataBase Connectivity
DataBase Connectivity
Akankshaji
 

Ähnlich wie JSP Standard Tag Library (20)

jstl ( jsp standard tag library )
jstl ( jsp standard tag library )jstl ( jsp standard tag library )
jstl ( jsp standard tag library )
 
Jsp standard tag_library
Jsp standard tag_libraryJsp standard tag_library
Jsp standard tag_library
 
Jsp tag library
Jsp tag libraryJsp tag library
Jsp tag library
 
Session_15_JSTL.pdf
Session_15_JSTL.pdfSession_15_JSTL.pdf
Session_15_JSTL.pdf
 
Implementing java server pages standard tag library v2
Implementing java server pages standard tag library v2Implementing java server pages standard tag library v2
Implementing java server pages standard tag library v2
 
Jstl &amp; El
Jstl &amp; ElJstl &amp; El
Jstl &amp; El
 
JSTL.pptx
JSTL.pptxJSTL.pptx
JSTL.pptx
 
Introduction to JSP
Introduction to JSPIntroduction to JSP
Introduction to JSP
 
Jsp and jstl
Jsp and jstlJsp and jstl
Jsp and jstl
 
Jstl 8
Jstl 8Jstl 8
Jstl 8
 
Web Component Development Using Servlet & JSP Technologies (EE6) - Chapter 8 ...
Web Component Development Using Servlet & JSP Technologies (EE6) - Chapter 8 ...Web Component Development Using Servlet & JSP Technologies (EE6) - Chapter 8 ...
Web Component Development Using Servlet & JSP Technologies (EE6) - Chapter 8 ...
 
Implementing jsp tag extensions
Implementing jsp tag extensionsImplementing jsp tag extensions
Implementing jsp tag extensions
 
Bt0083 server side programing 2
Bt0083 server side programing  2Bt0083 server side programing  2
Bt0083 server side programing 2
 
MyBatis
MyBatisMyBatis
MyBatis
 
Lecture 5 JSTL, custom tags, maven
Lecture 5   JSTL, custom tags, mavenLecture 5   JSTL, custom tags, maven
Lecture 5 JSTL, custom tags, maven
 
Internet and Web Technology (CLASS-14) [JSP] | NIC/NIELIT Web Technology
Internet and Web Technology (CLASS-14) [JSP] | NIC/NIELIT Web Technology Internet and Web Technology (CLASS-14) [JSP] | NIC/NIELIT Web Technology
Internet and Web Technology (CLASS-14) [JSP] | NIC/NIELIT Web Technology
 
Jsp element
Jsp elementJsp element
Jsp element
 
Jsp in Servlet by Rj
Jsp in Servlet by RjJsp in Servlet by Rj
Jsp in Servlet by Rj
 
DataBase Connectivity
DataBase ConnectivityDataBase Connectivity
DataBase Connectivity
 
Advance java session 16
Advance java session 16Advance java session 16
Advance java session 16
 

Mehr von VISHAL DONGA (8)

Spring Architecture | Advanced Java
Spring Architecture | Advanced JavaSpring Architecture | Advanced Java
Spring Architecture | Advanced Java
 
Hibernate
HibernateHibernate
Hibernate
 
WCF
WCFWCF
WCF
 
Vehicle Security System
Vehicle Security SystemVehicle Security System
Vehicle Security System
 
ipv4
ipv4ipv4
ipv4
 
Cache memory and cache
Cache memory and cacheCache memory and cache
Cache memory and cache
 
Deadlock
DeadlockDeadlock
Deadlock
 
Newton divided difference interpolation
Newton divided difference interpolationNewton divided difference interpolation
Newton divided difference interpolation
 

Kürzlich hochgeladen

Kürzlich hochgeladen (20)

Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptx
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the Classroom
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptx
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 

JSP Standard Tag Library

  • 1. JSP Standard Tag Libraries
  • 2. Overview  Introduction to JSTL  Categories  JSTL Core  JSTL Formatting  JSTL SQL  JSTL XML  JSTL functions 2J S T L
  • 3. • JSP Standard Tag Library(JSTL) is a standard library of custom tags. The JSTL contain several tag that can remove scriptlet code from a JSP page. • JSP Standard Tag Library (JSTL) is the standard tag library that provides tags to control the JSP page behavior, iteration and control statements, internationalization tags, and SQL tags. • To use JSTL the jar files like Jstl.jar , standard.jar files are necessary. What is JSTL? 3J S T L
  • 4. 5 categories • JSTL Core. • JSTL Formatting. • JSTL SQL. • JSTL XML. • JSTL functions. 4J S T L
  • 5. Library URI Prefix Core http://java.sun.com/jsp/jstl/core c XML Processing http://java.sun.com/jsp/jstl/xml x Formatting http://java.sun.com/jsp/jstl/fmt fmt Database Access http://java.sun.com/jsp/jstl/sql sql Functions http://java.sun.com/jsp/jstl/functions fn JSTL URIs and Default Prefixes 5J S T L
  • 6. JSTL core: • Core tags provide support for iteration, conditional logic, catch exception, url, forward or redirect response etc. To use JSTL core tags, we should include it in the JSP page like below. • <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> 6J S T L
  • 7. JSTL Core Tags Tags Description <c:out> To write something in JSP page, we can use EL also with this tag <c:import> Same as <jsp:include> or include directive <c:redirect> redirect request to another resource <c:set> To set the variable value in given scope. <c:remove> To remove the variable from given scope <c:catch> To catch the exception and wrap it into an object. <c:if> Simple conditional logic, used with EL and we can use it to process the exception from <c:catch> <c:choose> Simple conditional tag that establishes a context for mutually exclusive conditional operations, marked by <c:when> and <c:otherwise> 7J S T L
  • 8. Core Tags Library Tag Descriptor <c:when> Sub tags of <c:choose> that includes its body if its condition evaluates to ‘true’. <c:otherwise> Sub tags of <c:choose> that includes its body if its condition evaluates to ‘false’. <c:forEach> for iteration over a collection <c:forTokens> for iteration over tokens separated by a delimiter. <c:param> used with <c:import> to pass parameters <c:url> to create a URL with optional query string parameters 8J S T L
  • 9. JSTL Formatting • These tags are provided for formatting of Numbers, Dates and i18n support through locales and resource bundles. We can include these tags in JSP with below syntax • <%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %> 9J S T L
  • 10. Format Tags Tags Description <fmt:formatNumber> To render numerical value with specific precision or format. <fmt:parseNumber> Parses the string representation of a number, currency, or percentage. <fmt:formatDate> Formats a date and/or time using the supplied styles and pattern <fmt:parseDate> Parses the string representation of a date and/or time <fmt:bundle> Loads a resource bundle to be used by its tag body. <fmt:setLocale> Stores the given locale in the locale configuration variable. 10J S T L
  • 11. Format Tags Tags Description <fmt:setBundle> Loads a resource bundle and stores it in the named scoped variable or the bundle configuration variable. <fmt:timeZone> Specifies the time zone for any time formatting or parsing actions nested in its body. <fmt:setTimeZone> Stores the given time zone in the time zone configuration variable <fmt:message> To display an internationalized message. <fmt:requestEncodin g> Sets the request character encoding 11J S T L
  • 12. JSTL SQL • JSTL SQL Tags provide support for interaction with relational databases such as Oracle, MySQL etc. Using SQL tags we can run database queries, we include it in JSP with below syntax • <%@ taglib uri="http://java.sun.com/jsp/jstl/sql" prefix="sql" %> 12J S T L
  • 13. SQL Tags Tags Description <sql:setDataSource> Creates a simple DataSource suitable only for prototyping <sql:query> Executes the SQL query defined in its body or through the sql attribute. <sql:update> Executes the SQL update defined in its body or through the sql attribute. <sql:param> Sets a parameter in an SQL statement to the specified value. <sql:dateParam> Sets a parameter in an SQL statement to the specified java.util.Date value. <sql:transaction > Provides nested database action elements with a shared Connection, set up to execute all statements as one transaction. 13J S T L
  • 14. JSTL XML • XML tags are used to work with XML documents such as parsing XML, transforming XML data and XPath expressions evaluation. Syntax to include XML tags in JSP page • <%@ taglib uri="http://java.sun.com/jsp/jstl/xml" prefix="x" %> 14J S T L
  • 15. XML tags Tags Description <x:parse> Use to parse XML data specified either via an attribute or in the tag body. <x:set > Sets a variable to the value of an XPath expression. <x:if > Evaluates a test XPath expression and if it is true, it processes its body. If the test condition is false, the body is ignored. <x:forEach> To loop over nodes in an XML document. <x:choose> Simple conditional tag that establishes a context for mutually exclusive conditional operations, marked by <when> and <otherwise> <x:when > Subtag of <choose> that includes its body if its expression evalutes to 'true' 15J S T L
  • 16. XML Tags Tag Descriptor <x:otherwise > Subtag of <choose> that follows <when> tags and runs only if all of the prior conditions evaluated to 'false' <x:transform > Applies an XSL transformation on a XML document <x:param > Use along with the transform tag to set a parameter in the XSLT stylesheet 16J S T L
  • 17. JSTL Functions • JSTL tags provide a number of functions that we can use to perform common operation, most of them are for String manipulation such as String Concatenation, Split String etc. Syntax to include JSTL functions in JSP page • <%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %> 17J S T L
  • 18. Functions Function Description fn:contains() Tests if an input string contains the specified substring. fn:containsIgnoreCase() Tests if an input string contains the specified substring in a case insensitive way. fn:endsWith() Tests if an input string ends with the specified suffix. fn:escapeXml() Escapes characters that could be interpreted as XML markup. fn:indexOf() Returns the index withing a string of the first occurrence of a specified substring. fn:join() Joins all elements of an array into a string. 18J S T L
  • 19. Function Description fn:replace() Returns a string resulting from replacing in an input string all occurrences with a given string. fn:split() Splits a string into an array of substrings. fn:startsWith() Tests if an input string starts with the specified prefix. fn:substring() Returns a subset of a string. fn:substringAfter() Returns a subset of a string following a specific substring. fn:substringBefore() Returns a subset of a string before a specific substring. 19J S T L
  • 20. Tags Description fn:toLowerCase() Converts all of the characters of a string to lower case. fn:toUpperCase() Converts all of the characters of a string to upper case. fn:trim() Removes white spaces from both ends of a string. 20J S T L