+};
+
+extension.wlxmlClass.list.transformations = {
+ extractAllItems: function() {
+ var contents = this.contents();
+ return this.document.extractItems({item1: contents[0], item2: _.last(contents)});
+ }
+};
+
+extension.wlxmlClass.list.transformations = {
+ extractListItems: function() {
+ var contents = this.contents(),
+ first = contents[0],
+ last;
+ if(contents.length) {
+ last = contents[contents.length-1];
+ this.document.extractItems({
+ item1: first,
+ item2: last
+ });
+ } else {
+ this.detach();
+ }
+ }
+};