tags:

views:

41

answers:

2

Hello everyone,

I am new to XSLT and learning XML. I heard there are 4 types of XML nodes, element, text node, comments and instruction node. I want to learn more about them, their functions and their differences.

Could anyone recommend me some good tutorials for this topic?

EDIT 1: whether my below understanding of text node is correct?

in the below sample, text node is abcd?

<foo>abcd</foo>

thanks in advance, George

+2  A: 

For a reference is really good this page W3Schools but if you are looking for some tutorials it probably won't be right one.

Gaim
From the link, where it is mentioned XML node types? I read it again and cannot find out.
George2
Appreciate if you could review EDIT 1 section of my post to see whether my understanding is correct (about XML text node)?
George2
This page is usable like a reference for XSLT commands and instructions. It is not about XML. Your Edit 1: yes, text node is "abcd" and in XPath it's called `text()`. Element is "foo" and in XPath it is also `*` which matches all elements. I am sorry but I don't know any page with XML tutorial etc. because I know it from school and I have never required other information.
Gaim
"I know it from school" -- cool! :-) Question answered!
George2
+1  A: 

The best reference I've found for XSLT is 'XSLT 2.0 and XPath 2.0, 4th Edition' by Michael Kay. He's the spec lead for xslt 2.0 and xpath 2.0 and the implementor of the Saxon XSLT engine. It really is a great book - my copy has floated around the whole team and always has the answer if you look hard enough.

Another tip is to include the authors name in your xslt related search. He's quite active on the XSLT mailing list and including his name in the search term helps you jump straight to the answer you're looking for.

Robert Christie
Hi cb, thanks! Actually I do not have the book at hand. For my specific question about XML node types, do you have any good ideas or recommended documents (e.g. some kinds of short document to answer my specific question, like a blog?)? :-)
George2
Appreciate if you could review EDIT 1 section of my post to see whether my understanding is correct (about XML text node)?
George2