Define a default namespace for use in XSL XPaths with xpath-default-namespace
I have this simple xml document: <?xml version='1.0' encoding='UTF-8'?> <registry xmlns="http://www.iana.org/assignments" id="character-sets"> <registry id="character-sets-1"> <record> <name>ANSI_X3.4-1968</name> </record> </registry> </registry> When I use this xsl I can extract the name: <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:my="http://www.iana.org/assignments" version="1.0"> <xsl:template match="/my:registry"> <xsl:copy-of select="//my:record/my:name"/> </xsl:template> </xsl:stylesheet> However, If I omit the namespace