draft registration of application/vnd.kde.kpartgui+xml

Jörg Walter ehrlich at ich.bin.kein.hoschi.de
Tue Jul 9 10:18:16 BST 2002


Hi!

Just a quick thought/suggestion I had while reading this:

On Monday, 08. July 2002 13:15, Marc Mutz wrote:
> @@ -48,7 +48,7 @@
>
>  Additional information:
>
> - -        Magic numbers: XML document with root node "kpartgui"
> +        Magic numbers: XML document with root node "Gui"
>          File extensions: none specific, usually rc
>          Macintosh File Type Codes: n/a

Can you assign a namespace as well? That would make the file distinguishable 
from other XML files with root node "Gui", and it would make modern XML 
processor's jobs much easier.

Just in case you are not familiar with namespaces, files would look like this: 
<Gui xmlns="http://kde.org/2002/XMLGUI">...rest of xml...</Gui>

(I made up this namespace URI, someone else should decide on that - it's 
basically just a random URI in a name space you control, it need not be 
reachable or anything.)
So there's not much difference, namespaces-unaware parsers will work just like 
before, namespaces-aware ones will benefit from it, and identification of 
XMLGUI files (or fragments embedded in other XML!) is posssible without any 
doubt.
The description would change like this:
        Magic Numbers: XML document with root node "Gui" in XML name space 
"http://..."

Of course, XMLGUI creating programs would need a small modification to write 
out the xmlns attribute, but that's all.
The XML Namespaces standard can be found at the w3c site, it looks like it 
will be incorporated into core XML in the next version.

-- 
CU
	Joerg

PGP Public Key at http://ich.bin.kein.hoschi.de/~trouble/public_key.asc
PGP Key fingerprint = D34F 57C4 99D8 8F16 E16E  7779 CDDC 41A4 4C48 6F94





More information about the kde-core-devel mailing list