Basic XSLT question.

XSLT is namespace-aware. If you want to match namespaced nodes, including
ones set via a default namespace, you must use prefixed qnames in your
patterns and define those prefixes.

Specifically: You didn't show us your stylesheet, but to match your
     <List xmlns="http://localhost/List";
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
       xsi:schemaLocation="http://localhost/List
                      http://localhost/List.xsd";>

the template must say something like
     <xsl:template match="listns:List"
          xmlns:listns="http://localhost/List";>

(Normally you would define that listns prefix at the top of the stylesheet
and just inherit it here, since presumably you may want to use the same
namespace in other templates.)



Reply via email to