I have an XML input document where the default namespace is bound somewhere, e.g.
<mydocument xmlns="http://me.com/mydocument"> <something>blah</something> </mydocument> My XSL stylesheet now doesn't work if I do any xpath selections, such as <xsl:template match="/"> <xsl:for-each select="/mydocument"> ... </xsl:for-each> </xsl:template> I get no output. If I take the 'xmlns' binding off the input document, it works. Also, if I use a prefix, and put the binding back on but using the prefix, and bind that prefix in the xsl stylesheet, it works. Can anyone tell me why? I am writing an application where I am expecting XML documents to be sent to me where the default namespace will be bound, exactly as in my example. Please help! Regards, Simon Godden DCS Transport and Logistics
