Menu

CookXml NameSpace preview in Subversion

CookXml 3.0 preview, which adds XML namespace handling, is in Subversion. I also worked on CookSwing a bit to test two modes of parsing XML files. I will update CookSwt and other libraries when I get chance.

The two modes are, with namespace and without namespace. If you run CookSwingDemo, then tabledemo_ns.xml is a namespace version of XML which will be recognized by the default CookSwing tag library. CookSwing can also work without namespace, for backward compatibility.

There are three versions of tag library to choose from. SingleNSTagLibrary which can only add tags of a single namespace, but its parent can be any tag library with any number of namespaces. InheritableTagLibrary, which is the same as the CookXml 2.x version, works on top of SingleNSTagLibrary. A tag can inherit a different namespaced tag in the parent tag library. MultiNSTagLibrary currently works by adding several SingleNSTagLibraries under different namespaces. This TagLibrary likely will be changed in the 3.0 formal release. I am still deciding on how to implement inheritance in this mode with consideration of CookSwing etc.

The structure of the default CookSwing tag library is basically an SingleNSTagLibrary in http://cookxml.sf.net/cookswing/ namespace having a parent SingleNSTagLibrary in http://cookxml.sf.net/common/ namespace.

Bugs and suggestions are welcome.

BTW, there is a known problem that id, idref etc work without namespace restriction. I will deal with them before the formal release.

Posted by Coconut 2006-10-22

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.