Moonlight-Message: NP_Initialize Running Moonlight.cs 0 Moonlight-Message: Mono Runtime: OK Moonlight-Message: NPP_New Moonlight-Message: NPP_GetValue 14 (e) Moonlight-Message: NPP_SetWindow 100 100 Moonlight-Message: *** creating window (13,391,100,100) The plugin handle is 154010328 The Plugin Handle has been set to 154010328 Loader.TryLoad: 154012728 ** (Gecko:4846): WARNING **: add_default_namespaces ** (Gecko:4846): WARNING **: insert default_namespace http://schemas.microsoft.com/winfx/2006/xaml/presentation ** (Gecko:4846): WARNING **: p->current_namespace lookup result = (nil), http://schemas.microsoft.com/winfx/2006/xaml/presentation ** (Gecko:4846): WARNING **: PARSER ERROR, STOPPING PARSING: No handlers available for namespace: '' line: 1 char: 0 ** (Gecko:4846): WARNING **: PARSER ERROR, STOPPING PARSING: parsing aborted line: 1 char: 74 Could not load xaml file Moonlight-Message: NPP_SetWindow 100 100 Moonlight-Message: NPP_SetWindow 100 100 Index: src/xaml.cpp =================================================================== --- src/xaml.cpp (revision 80319) +++ src/xaml.cpp (working copy) @@ -341,6 +341,8 @@ XamlElementInfo *elem; XamlElementInstance *inst; +g_warning ("p %p", p); +g_warning ("p->current_namespace %p", p->current_namespace); elem = p->current_namespace->FindElement (p, el); if (elem) { @@ -411,9 +413,11 @@ if (name [1]) { // Find the proper namespace p->current_namespace = (XamlNamespace *) g_hash_table_lookup (p->namespace_map, name [0]); +g_warning ("p->current_namespace lookup result = %p, %s", p->current_namespace, name [0]); element = name [1]; } else if (p->implicit_default_namespace) { p->current_namespace = default_namespace; +g_warning ("p->current_namespace default_namespace = %p", p->current_namespace); element = name [0]; } @@ -520,9 +524,11 @@ g_strdup_printf ("It is illegal to add a prefix (xmlns:%s) to the default namespace.\n", prefix)); g_hash_table_insert (p->namespace_map, g_strdup (uri), default_namespace); +g_warning ("insert default_namespace %s", uri); } else if (!strcmp ("http://schemas.microsoft.com/winfx/2006/xaml", uri)) { g_hash_table_insert (p->namespace_map, g_strdup (uri), x_namespace); +g_warning ("insert other x_namespace %s", uri); } else { if (!p->custom_element_callback) return parser_error (p, (p->current_element ? p->current_element->element_name : NULL), prefix, @@ -530,12 +536,14 @@ CustomNamespace *c = new CustomNamespace (g_strdup (uri)); g_hash_table_insert (p->namespace_map, c->xmlns, c); +g_warning ("insert custom namespace %s", uri); } } void add_default_namespaces (XamlParserInfo *p) { +g_warning ("add_default_namespaces"); p->implicit_default_namespace = true; g_hash_table_insert (p->namespace_map, (char *) "http://schemas.microsoft.com/winfx/2006/xaml/presentation", default_namespace); g_hash_table_insert (p->namespace_map, (char *) "http://schemas.microsoft.com/winfx/2006/xaml", x_namespace);