Win a copy of Mastering Corda: Blockchain for Java Developers this week in the Cloud/Virtualization forum!

Vivek Saxena

Ranch Hand
+ Follow
since Apr 24, 2002
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Vivek Saxena

Yes you are absolutely correct!
XML File

I would say

Select all ‘a’ elements which have x in its following axis and the node value of ‘a’ node does not equal to the node value of ‘x’ in its following axis.

So My answer:
1st , 3rd and 4th node in second B-set. Which are basically 3,2,3
If I can be of further assistance, please let me know.
NOTE: For future I would suggest you to post full question including all the files. Just a suggestion.
Thanks
VivekS
You can find your answer here.
VivekS.
Fiz,
Let me try to help you. I can see the problem with your XML file and XSL file.

All the elements in your source XML file is in �com:test: developer� namespace. While in your XSL file all the �xsl:template� looking for an element in source document which is not in any anmespace and it does not find any element in source document which is not in any namespace. All the defaults templates will be executed in this case and this is how you are getting all the value.
Once you remove the namespace declaration from source file then all the elements in source XML file do not belongs to any namespace and the templates in XSL documents get executed.

If you do following change in your source XSL file then you will get desired results.

I am assuming that the namespace string in source document is �com:test: developer�, in case if it is different then change it accordingly in above XSL file.
I hope this make things clear to you.
Thanks
[ March 19, 2003: Message edited by: Vivek Saxena ]
Thanks Tong Chen,
I can see this implementation problem. I tried in IE 6 and it gave me same error.
Thanks
I was reading �Roger�s� tutorial on XSLT and I got confused in �variable� section.


A variable is �write once, read many�.
That is, you can assign a variable a value only once, but then you can retrieve the value of the variable many times.


I tried to assign �second� value to a variable and it seems that it is taking the second assigned value for the declared variable. I am using following files for my testing:
XML File:

XSL File:


OUTPUT File:


I really don�t understand. Why am I not getting an error? Or why is it using second assigned value to the variable?

Please do reply.
Thanks
Oh , Now i get it.
Thanks you Roseanne.
Thanks
This is what i don't understand. There is a difference between "//a[(following::x)]" &
"//a[(following::x=.)]"
but i am not able to find/define the difference in words.
Any help would be appreciated.
Thanks
Hi,
Following question is from "Test 3 " of XMLWhiz. I am having problem to
under stand the Xpath expression.

What is the difference between
"//a[(following::x)]"
&
"//a[(following::x=.)]"

I know with "//a[(following::x)]" we will get all "a" elements which has "x" as following element.
I have no idea about the expression
"//a[(following::x=.)]".
Please help me !

Thanks
[ March 10, 2003: Message edited by: Vivek Saxena ]
Thanks Madhav,
I think you are absolutely right. This was a big confusion for me but I guess it is over now.
Thanks again!
Vivek
No Not because of this, because my XML file is correct.

I did this typo when i was writing this post.
Please help me!, looking forward for some help.
thanks
I just started the reading of XSLT tutorial from Zvon.org and I am confused with very first example.
Original Files:


XML File:



XSL File:



Output File:


Up to This point everything is clear. We are using Xpath expression ="//title"/ and this is why we are getting the output file.
But when I tried to change the XML File with same style sheet it didn�t give me the expected output. The output file is still the same old file.

Changed XML File:



Output File:



Why it didn�t pick the second �title� element. Even though we are using the Xpath expression �//title�?

Please explain it?
Thanks
[ March 05, 2003: Message edited by: Vivek Saxena ]
Just want to share. There is a very good tool called Xpath Visualiser. it helped me a lot to understand the "Xpath expression. May be it will help you.
Thanks
[ February 21, 2003: Message edited by: Vivek Saxena ]
Thanks Madhav,
Things are now much clear. I just came to know i can play with all the examples of "Zvon" tutorial in "Xlab" on same web site.
I really appreciate it!
Thanks