[PATCH] XML Policy

Frans Englich frans.englich at telia.com
Wed Feb 23 01:29:43 GMT 2005


On Wednesday 23 February 2005 01:11, Jason Keirstead wrote:
> On February 22, 2005 08:52 pm, Frans Englich wrote:
> > It's not, but often you have global element declarations in addition to
> > type declarations, which means they'll clash.
>
> There is no problem with these things clashing because they are totally
> different things... you use one in one context and another in another
> context.
>
> You can't say <xsl:element name="foo" type="SomeElement">. The type must be
> an actual 'type', or else the whole stylesheet would not validate anyway.
> Similarly, you can't use a type as an element. So, how would these clash?
>
> Or am I missing something?

No, a conformant schema parser should keep elements and types in different 
symbol spaces(AFAIK). Symbol spaces is not a namespace mechanism but a schema 
thingy so the QNames are only distinguished on a schema level, but I don't 
see how that should create problem. So you can label the recommendation as a 
hungarian notation/API naming guideline or something like that. If it stays 
is up to you.


Cheers,

		Frans




More information about the kde-core-devel mailing list