XSLT is namespace-aware, but has no equivalent of the xmlns="whatever"
default-namespace feature.. To select or match a namespaced node, you
_must_ use a prefixed qname where the prefix has been bound to the correct
namespace. Change
     <xsl:for-each select="/mydocument">
to
     <xsl:for-each select="/myns:mydocument">
and declare
      xmlns:myns="http://me.com/mydocument";
either here or higher in the document. (Typical practice, though not always
best, is to declare all the namespaces you might want to use on the
top-level stylesheet element.)


Reply via email to