• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Concat function in XPath

 
Rajan Thiyagarajan
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a doubt about 'Concat' function(in XPath topic). The below one is from the examples of XML Quick Referece.
concat('number(not(', false(), '())) = ', 1)
returns
'number(not(false())) = 1'.
How ?
 
John Lee
Ranch Hand
Posts: 2545
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
According to defination, concat() takes two or more string argument (or argument which are converted to string) and concatenates the string arguments in sequence.
So it is clear what happen here:
4 string arguments:
'number(not('
false() --> 'false()'
'())) = '
1 --> '1'
So the result is:
'number(not(false())) = 1'
 
Rajan Thiyagarajan
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Don for clarifying my doubt.
I have one more doubt. I was trying to map the syllabus given by IBM for XML and Related Technologies - Test 141 and XML concpets.
I became confused seeing the last section, Section 5 in the Syllabus. The section heading is "Testing and Tuning". How should I prepare myself for that portion of the syllabus. Which all type of questions will be asked from that section.
Please share your knowledge.
Thanks
Rajan
 
John Lee
Ranch Hand
Posts: 2545
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Rajan Thiyagarajan:
I became confused seeing the last section, Section 5 in the Syllabus. The section heading is "Testing and Tuning". How should I prepare myself for that portion of the syllabus. Which all type of questions will be asked from that section.

If I remember correctly, there are ~6 questions in "Testing and Tuning" section of each sample test. But it seems hard to tell which 6.
I think "Testing and Tuning" is a general term, same meaning as in other programming occasion. So it is from everywhere: XML, DTD, Schema, XPath, XSLT... The only way to prepare for it is to know all the topic well, throughly.
 
Rajan Thiyagarajan
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Don,
Thanks for your reply. I understand that I have to study all the topics like XML, XSL, XPath etc and anything can be asked under the "testing and tuning" section. But what I am not clear is, the type of questions that will be asked. Means, How a question on XSL asked under this section will be different from the question on XSL asked from Sections 2 or 3 in the syllabus.
Thanks
=Rajan=
 
John Lee
Ranch Hand
Posts: 2545
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Rajan Thiyagarajan:
[QB]But what I am not clear is, the type of questions that will be asked. Means, How a question on XSL asked under this section will be different from the question on XSL asked from Sections 2 or 3 in the syllabus.[QB]

I wish I know that. Have you tried IBM sample test?
 
Rajan Thiyagarajan
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Very much Don.
Sorry I have not tried the IBM Sample Test.I am about to complete most of the parts in syllabus for IBM XML Test 141. I thought of taking it after completing all the topics so that I can measure the level of knowledge I possess in XML, somewhat to a IBM standard.
Your explanations for my various questions are really good and motivating.
thanks
rajan
 
John Lee
Ranch Hand
Posts: 2545
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You are welcome!
IBM recommend people take the test before hand. I think the goal is to give you a picture how the exam will be like, with this in mind, your preparation won't be way off.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic