[Yanel-dev] Another namespace problem with the XML resource

simon litwan simon.litwan at wyona.com
Thu Jun 25 23:30:30 CEST 2009


i'm answering to this thread, because i think i have the same problem.
see thread [xml resource-type lossing namespace declaration when 
applying xslt]


Michael Wechner schrieb:
> Josias Thöny wrote:
>
>>
>>>>
>>>> However I'm not sure if this is a good solution.
>>>
>>>
>>>
>>> why not?
>>
>>
>> Our XMLSerializer expects that an element in the SAX stream with a 
>> namespace either has an attribute which declares this namespace (or 
>> one of the ancestors has such an attribute).
>> AFAIK this is not required in a SAX stream, and apparently the 
>> default of the Xerces XMLReader is to omit the namespace declaration 
>> attributes.
>> This has been changed by the above setFeature(...) line, but if 
>> someone uses our serializer in a different situation, the same 
>> problem may occur again.
>
i debugged a bit, and i don't think this is a problem of the seriealizer.
because if i don't use an xslt, the serializer gets the namespace 
declaration as an attribute within the startElement method. but if i add 
a xslt the serializer doesn't get the the namespace declaration as 
attribute anymore.
to me it seems the the namespace get lost within the xslt-transformation.

simon
>
> ok
>
>>
>>>
>>>> I guess the "correct" solution would be to implement namespace 
>>>> normalization in the XMLSerializer. But that might be a lot of work...
>>>
>>>
>>>
>>> have we a bug/task entry for this already?
>>
>>
>> I just filed a bug:
>>
>> http://bugzilla.wyona.com/cgi-bin/bugzilla/show_bug.cgi?id=5458
>
>
> thanks very much
>
> Michi
>
>>
>> Josias
>>
>>>
>>> Cheers
>>>
>>> Michi
>>>
>>>>
>>>> Josias
>>>>
>>>>
>>>>
>>>>>
>>>>> Thanks
>>>>>
>>>>> Michi
>>>>>
>>>>
>>>> _______________________________________________
>>>> Yanel-development mailing list
>>>> Yanel-development at wyona.com
>>>> http://lists.wyona.org/cgi-bin/mailman/listinfo/yanel-development
>>>
>>>
>>>
>>>
>>
>> _______________________________________________
>> Yanel-development mailing list
>> Yanel-development at wyona.com
>> http://lists.wyona.org/cgi-bin/mailman/listinfo/yanel-development
>
>
>



More information about the Yanel-development mailing list