on 04-11-2008 7:59 AM
hi
what are the various xpath fuctions in xslt mapping?
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.