No, you are getting the correct output for that transformation. You are relying on the default processing rules for XSLT, which are basically that text nodes are copied to the output.
What you are looking for is called an "identity transformation"; it looks like this:
I would suggest you read a tutorial or a book about XSLT, rather than writing code based on guesses about how the language works. (Your other sin was to blame your IDE rather than assuming you were wrong. I always find that assuming it's my fault when things go wrong is a much more fruitful approach to solving problems.)
Joined: Nov 02, 2000
Thanks for that information.
I went through 2 XSLT tutorials but neither contained the information you conveyed in your response. The tutorials focus on what most beginning XSLT users need, namely the ability to extract textual information from an XML source and format/display it in a browser. Consequently they usually show the generation of HTML tags and xsl:value-of text.
I didn't blame my XML IDE, I merely suggested that it might be at fault. Since I am an XSLT newbie I naturally suspect that any problem I might encounter using XSLT would be rooted in my ignorance, but after some fruitless experience with ButterflyXML I don't rule out the possibility of XML IDE malfunction.
I greatly appreciate your response and value your help now and possibly in the future.
Well, I do have to admit, most of the XSLT "tutorials" I have seen on the web just rehash the XSLT elements and throw in a few trivial examples. Not very impressive in general. I learned XSLT by reading Michael Kay's XSLT book, which at least has some decent examples in it. Not to say there aren't other good XSLT books out there.