I was studying XSLT from ZVON.org tutorials. In page 56
they show an example of id() function usage, which I'm lost after . I tried it in IE and it really works. In the for-each loop of //ref, apply-templates is supposed to work for sub elements of ref tags (which is none other than text nodes), but somehow it parses note tags. If anyone can explain me how, I'd be relieved. Thanks in advance.
EDIT: I might have an answer to my question:
If you look at the DTD at the top of document, you'll see that id attribute in ref is not defined as ID but IDREF. Therefore id selection in apply-template call does not parse ref tags themselves but looks tags with real id attributes defined as ID in DTD (in this case note tags).
Still one thing I can't understand is that note tags are not children of ref tags or even doc tag. How come apply-templates can call for tags that are supposed to be out of their call range (in this case I assume it is for-each call of ref tags). I still need to be clarified on that. Thanks.