This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
In the sample of your input XML document you left out the part where it declares the namespace whose prefix is "c:" in that document.
It isn't the case that the name of the attribute "contains a colon", from the XML point of view. It is the case that the attribute's name is in a certain namespace, and you have declared that in this document, that namespace will be described by the prefix "c:".
So if you want to search for attributes in that namespace, you have to declare the namespace. That means that in your XSLT document, you have to declare that namespace and specify that its prefix will be "c:" in the XSLT document as well.
Joined: Aug 31, 2004
Actually I am not generating the xml here, its the output of a tool that I am using. I am pasting the file here. Please let me know if there s any way that I can get the value myName and the type of the element from this file.
(I am adding space after each colon to avoid the smileys)