This post originated from an RSS feed registered with Agile Buzz
by James Robertson.
Original Post: Too many hierarchies
Feed Title: Michael Lucas-Smith
Feed URL: http://www.michaellucassmith.com/site.atom
Feed Description: Smalltalk and my misinterpretations of life
Well, I have to say I feel only a little annoyed at myself for letting such a bug in to my system. What bug you say? Well, it's in the dynamic XML code that I was describing a few posts ago.
Let me just set the field of play for you. We have the original webpage's XML hierarchy. Then we have that pages XSL transformed version's hierarchy. Then we have the view node's on top of that's hierarchy. Then on top of that we have hte layout node's hierarhy.
Let's make this a little worse. A user does an action that changes the original XML hierarchy, which creates a new transformed version with its own hierarchy. At this point, I had to post initialize some of my nodes. Which hierarchy?!
Original DOM tree
Transformed DOM tree
New Transformed DOM tree
View Node's tree
Layout Node's tree
If you picked New Transformed DOM tree, then you'd be wrong. If you picked Transformed DOM tree, then you just did my bug :). If you picked View Node's tree, then you get a gold star!