--- loncom/homework/edit.pm	2010/10/10 00:14:15	1.131
+++ loncom/homework/edit.pm	2010/11/13 03:22:58	1.133
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA 
 # edit mode helpers
 #
-# $Id: edit.pm,v 1.131 2010/10/10 00:14:15 www Exp $
+# $Id: edit.pm,v 1.133 2010/11/13 03:22:58 www Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -400,8 +400,12 @@ sub insert_formularesponse {
 sub insert_functionplotresponse {
     return '
 <functionplotresponse>
+<functionplotelements>
 <spline />
-<splinerule />
+</functionplotelements>
+<functionplotruleset>
+<functionplotrule />
+</functionplotruleset>
 </functionplotresponse>';
 }
 
@@ -415,12 +419,24 @@ sub insert_backgroundplot {
 <backgroundplot />';
 }
 
-sub insert_splinerule {
+sub insert_functionplotrule {
     return '
-<splinerule />';
+<functionplotrule />';
 }
 
+sub insert_functionplotruleset {
+    return '
+<functionplotruleset>
+<functionplotrule />
+</functionplotruleset>';
+}
 
+sub insert_functionplotelements {
+    return '
+<functionplotelements>
+<spline />
+</functionplotelements>';
+}
 
 sub insert_numericalresponse {
     return '