# HG changeset patch # User paulb # Date 1129134794 0 # Node ID d6c3dbeae8eec7aae14b5454750467f8fcbcdae6 # Parent 5cfef59ce953acc3b3201912b66fe9de205c537e [project @ 2005-10-12 16:33:12 by paulb] Ignore empty field names in CSV lists. diff -r 5cfef59ce953 -r d6c3dbeae8ee examples/Common/Configurator/Resources/scripts/XSLForms.js --- a/examples/Common/Configurator/Resources/scripts/XSLForms.js Wed Oct 12 16:31:49 2005 +0000 +++ b/examples/Common/Configurator/Resources/scripts/XSLForms.js Wed Oct 12 16:33:14 2005 +0000 @@ -64,6 +64,12 @@ for (var i = 0; i < fieldNameArray.length; i++) { var fieldName = fieldNameArray[i]; + // Skip empty field names (arising through empty elements in the CSV list). + + if (fieldName == "") { + continue; + } + // Find the values of the target field. var fieldValue; diff -r 5cfef59ce953 -r d6c3dbeae8ee examples/Common/Dictionary/Resources/scripts/XSLForms.js --- a/examples/Common/Dictionary/Resources/scripts/XSLForms.js Wed Oct 12 16:31:49 2005 +0000 +++ b/examples/Common/Dictionary/Resources/scripts/XSLForms.js Wed Oct 12 16:33:14 2005 +0000 @@ -64,6 +64,12 @@ for (var i = 0; i < fieldNameArray.length; i++) { var fieldName = fieldNameArray[i]; + // Skip empty field names (arising through empty elements in the CSV list). + + if (fieldName == "") { + continue; + } + // Find the values of the target field. var fieldValue; diff -r 5cfef59ce953 -r d6c3dbeae8ee examples/Common/VerySimple/Resources/scripts/XSLForms.js --- a/examples/Common/VerySimple/Resources/scripts/XSLForms.js Wed Oct 12 16:31:49 2005 +0000 +++ b/examples/Common/VerySimple/Resources/scripts/XSLForms.js Wed Oct 12 16:33:14 2005 +0000 @@ -64,6 +64,12 @@ for (var i = 0; i < fieldNameArray.length; i++) { var fieldName = fieldNameArray[i]; + // Skip empty field names (arising through empty elements in the CSV list). + + if (fieldName == "") { + continue; + } + // Find the values of the target field. var fieldValue;