-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Tim Williams wrote: > -----BEGIN PGP SIGNED MESSAGE----- >
<snip/> >>> >>>As can be seen in this code Unico reused much of the sitemap code >>>from Cocoon. My question is, can we also leverage the <map:mount...> >>>code? Any pointers as to how to do this would be greatly appreciated. >> >>I mostly only reused the XML syntax not the actual tree building code > >>from the treeprocessor package. For instance treeprocessor distinguishes > >>between NodeBuilders and Nodes itself, I did not deem that neccessary >>for the locationmap because it is much simpler and limited in scope. But >>the mount mechanism should be similar. > > > I, too, would first like to say thanks for the locationmaps.... > > I'm obviously not as familiar with Cocoon internals as I should be, > but I wonder since much of Forrest is about location resolution is > there a reason we wouldn't want to fully implement a locationmap > language? In other words, it seems like the original idea [and > perhaps the current idea] is simple and limited, but why not poise lm > for growth. > > Specifically, why not extend our own DefaultTreeBuilder with > LocationmapLanguage, create a locationmap-language.xml and have a > foundation that can grow in the exact same way the sitemap language > can grow? Could the TreeProcessor not handle the two "languages" > together? Is it overkill? Don't know. If you expect the lm to grow it would certainly be a good idea. At the time I started the locationmap I wasn't that familiar with treeprocessor and I did the simplest thing that would work. For my own purposes it proved enough but as the implementation grows it will become more and more tedious to add new functionality without switching to a more plugable design. Whether it's worth the extra effort depends on what you expect to add in the future. I don't think the locationmap has the growth potential of the sitemap. After the addition of mounting semantics the locationmap is probably done. But I'd love to be proven wrong about that one. - -- Unico -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (Darwin) iD8DBQFC04Rrcuec8tVNKAwRArRWAJ9elWVXK5uSCZEyqHu51WRkvsJeRACeIKdj +UNFUbPNJArYt9XwFBRK3vY= =sYI4 -----END PGP SIGNATURE-----
