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.)- Problems with default namespace in XML input... Simon . Godden
- Re: Problems with default namespace in ... Joseph Kesselman/CAM/Lotus
- Re: Problems with default namespace in ... David Marston/Cambridge/IBM
- RE: Problems with default namespace in ... Saigal, Ankur
- RE: Problems with default namespace in ... David Marston/Cambridge/IBM
- Re: Problems with default namespace in ... David N Bertoni/Cambridge/IBM
- issue: namespace not declared and D... Ushakov, Sergey N
- Re: issue: namespace not declar... Peter Davis
- Re: issue: namespace not de... Ushakov, Sergey N
