cancel
Showing results for 
Search instead for 
Did you mean: 

xpath-functions

Former Member
0 Kudos

hi

what are the various xpath fuctions in xslt mapping?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

hi

various xpath functions like translate(),concat(),Subsrting(),sum(),count() string() in xslt mapping with an example...

the syntax and number of parameters accepted by each xpath funtion are:

substring()

This Function is used to extract some portions of the string from the original string.It takes a specified number of characters out of a string

syntax: substring("PRASAD BABU",1,6)

translate()

The translate function takes the string in the value argument,replaces all occurrecnes of a string specified in the string1 argument with substitue characters specified in string2 argument and returns the modified string.

syntax: translate("prasad babu","abcdefghijklmnopqrstuvwxyz","ABCDEFGHIJKLMNOPQRSTUVWXYZ")

string()

The string function converts the input to a string.

syntax: string("prasad babu")

concat()

The concat function takes all the individual arguments,concatenates them together in order,and returns the resultstant string

syntax: concat("prasad","babu")

sum()

The sum function converts PCDATA text to a numeric value

syntax: sum(p2:marks/score)

count()

This function is used to count the nodes

syntax: count(p2:marks/subjects)

for clear picture

check the below link

/people/prasadbabu.nemalikanti3/blog/2006/03/30/xpath-functions-in-xslt-mapping

note:reward points if solution found helpfull.....

regards

chandrakanth.k

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi !

have a look atv the given Blog

xpath functions in xslt mapping

/people/prasadbabu.nemalikanti3/blog/2006/03/30/xpath-functions-in-xslt-mapping

Thanks

Abhishek

Former Member
0 Kudos

Hi,

Check this

/people/prasadbabu.nemalikanti3/blog/2006/03/30/xpath-functions-in-xslt-mapping

'XPATH' Expressions in Receiver Determination

/people/shabarish.vijayakumar/blog/2006/06/07/customise-your-xpath-expressions-in-receiver-determination

/people/prasadbabu.nemalikanti3/blog/2006/09/20/receiver-determination-based-on-the-payload-of-input-dataextended-xpathcontext-object

Regards

Seshagiri