[Phoenix] Parser exception re introspection files

Andreas Wuest awuest at student.ethz.ch
Thu Sep 28 14:02:34 CEST 2006


Hi

On 28.9.2006 10:14 Uhr, Michael Wechner wrote:

> Hi
> 
> I just realized that Yulup rc5 throws an exception when trying to parse
> 
> 
> <navigation>
>  <sitetree href="sitetree.xml" method="GET"/>
> </navigation>
> 
> within an introspection file. Gregor told that this is because Yulup 
> rc5  has this "method" kind of implemented, but
> not fully. I have commented it for the moment such that the demo is 
> working again for people using Yulup rc5.
> 
> But how can we prevent that future versions have similar problems?
> 
> Shouldn't we upgrade the version within the namespace when we introduce 
> new elements, such that Yulup can check and doesn't get a hickup?

Sure, that would be the cleanest solution, although it somehow kills the 
idea of forward-compatible... ;)

If Yulup would run into an introspection document with a higher Neutron 
version than it supports, it would simply say "don't know about this, 
can't use", and halt.

Anyway, when introcuding *new* elements, they should simply be ignored 
by a client, and therefore there would be no need to force a client to 
fail by bumping the Neutron version number.

See e.g. this document http://www.w3.org/2001/tag/doc/versioning for a 
discussion of versioning issues and how to resolve them with regard to 
XML languages.

-- 
Kind regards,
Andi



More information about the Phoenix mailing list