Can't get correct XSLT output
问题 I have a XML like this: <?xml version="1.0" encoding="UTF-8"?> <Section> <Chapter> <nametable> <namerow> <namecell stuff="1"> <entity>A</entity> </namecell> <namecell stuff="2"> <entity>B</entity> </namecell> </namerow> </nametable> </Chapter> </Section> My XSLT is like this: <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0"> <xsl:output method="text"/> <xsl:template match="/"> <xsl:apply-templates select="Section/Chapter/