XSLT apply-template with mode - Incorrect result with no matching mode
Here's a simple case. Here's my XML: <?xml version="1.0" encoding="utf-8" ?> <dogs> <dog type="Labrador"> <Name>Doggy</Name> </dog> <dog type="Batard"> <Name>Unknown</Name> </dog> </dogs> This XML is used with two Xslt. This is the common one: <?xml version="1.0" encoding="utf-8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" exclude-result-prefixes="msxsl"> <xsl:output method="text"/> <xsl:template match="dogs"> <xsl:text>First template
</xsl:text> <xsl:apply-templates select="." mode="othertemplate" /> </xsl