XSLT Automatically outputs XML Data?

I am using a very simple XSLT template:

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
<xsl:template match="/">
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="*">
<xsl:value-of select="name(.)"/><br/>
<xsl:for-each select="@*">
<xsl:value-of select="name(.)"/><br/>
</xsl:for-each>
<xsl:apply-templates/>
</xsl:template>
</xsl:stylesheet>

And I use it on this simple sample XML file:

<?xml version="1.0" encoding="UTF-8"?>
<TestXSLT>
<TestElement1>Test String 1</TestElement1>
<TestElement2 text="Test String 2a">Test String 2b</TestElement2>
<TestElement3>
<TestElement4>Test String 4</TestElement4>
<TestElement5 text="Test String 5a">Test String 5b</TestElement5>
</TestElement3>
</TestXSLT>

Now, am I crazy thinking this should output (line breaks added for readability):

TestXSL<br/>
TestElement1<br/>
TestElement2<br/>
text<br/>
TestElement3<br/>
TestElement4<br/>
TestEleement5<br/>
text<br/>

Instead I get this (line breaks added for readability):

TestXSLT<br/>
TestElement1<br/>
Test String 1TestElement2<br/>
text<br/>
Test String 2bTestElement3<br/>
TestElement4<br/>
Test String 4TestElement5<br/>
text<br/>
Test String 5b

Is it supposed to do output the text in the elements automatically? If so, is there something I can do to keep it from doing that?

Thanks,
Tim
[1933 byte] By [doctorofstyle] at [2007-11-19 3:39:03]
# 1 Re: XSLT Automatically outputs XML Data?
Argh, I am good at confusing myself. Nevermind this reply.

Note to Editor: I need Delete Post functionality. 8)

Tim
doctorofstyle at 2007-11-10 3:27:45 >
# 2 Re: XSLT Automatically outputs XML Data?
default template getting called:
<xsl:template match="text()">
<xsl:value-of select="."/>
</xsl:template>

The default template for text simply outputs text.
to remove text overwrite it with:
<xsl:template match="text()"/>
jkmyoung at 2007-11-10 3:28:45 >
# 3 Re: XSLT Automatically outputs XML Data?
Curse those hobos! Hidden templates of DOOM! 8)

Thanks, that fixed it,

Tim
doctorofstyle at 2007-11-10 3:29:44 >