XSLT apply-templates in for-each
问题 I'm trying to write a simple XHTML to Simple Docbook translator (the input XHTML is a limited subset so it should be doable). I have this: <?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" encoding="UTF-8" indent="yes" omit-xml-declaration="yes" standalone="no"/> <!-- <xsl:strip-space elements="*"/> --> <xsl:template match="@*|node()"> <xsl:copy> <xsl:apply-templates select="@*|node()" /> </xsl:copy>