xml changes

Nov 23, 2015 14:31

So instead of any front end framework, per say, we are changing the structure. Previously the XML was organized in a straightforward way in which we called the XML which appeared as so:

Item Title A
 Item Title B
 Item Title C
 Item Title D

Which was called and grouped, very nicely, in this post, by attribute title in the XSL document via:

That coding would make the data appear to the front end as:
Grouping A
Item Title A
Item Title C
Grouping B
Item Title B
Item Title D

Of course, life can't be easy. So we had to add another layer of complication in there because fate hates me. Since we have to organize the data into columns before it hits the JavaScript/jQuery and CSS - the data needs to be sorted into three rows via the XML instead. Dynamically.

Therefore the XML I am set to work with now looks much more verbose. The count, obviously being the number of items in the group and the XML automatically being divided up and organized on the data side into the first second or third column.

Item Title A
  Item Title C

Item Title B
  Item Title D

Unfortunately, that means changing everything I wrote in the XSL in order to show the desired result on the front end. Joy. The final result forthcoming, I need to bang my head against the wall for a while in order to figure out how I'm going to plan this out.

xml, life

Previous post Next post
Up