code: function(context) {
          var node = OpenLayers.Format.WMC.v1.prototype.write_wmc_Layer.apply(
              this, [context]
          );
          
          // min/max scale denominator elements go before the 4th element in v1
          if(context.maxScale) {
              var minSD = this.createElementNS(
                  this.namespaces.sld, "sld:MinScaleDenominator"
              );
              minSD.appendChild(this.createTextNode(context.maxScale.toPrecision(16)));
              node.appendChild(minSD);
          }
          
          if(context.minScale) {
              var maxSD = this.createElementNS(
                  this.namespaces.sld, "sld:MaxScaleDenominator"
              );
              maxSD.appendChild(this.createTextNode(context.minScale.toPrecision(16)));
              node.appendChild(maxSD);
          }
  
          // optional SRS element(s)
          if (context.srs) {
              for(var name in context.srs) {
                  node.appendChild(this.createElementDefaultNS("SRS", name));
              }
          }
  
          // optional FormatList element
          node.appendChild(this.write_wmc_FormatList(context));
  
          // optional StyleList element
          node.appendChild(this.write_wmc_StyleList(context));
          
          // optional DimensionList element
          if (context.dimensions) {
              node.appendChild(this.write_wmc_DimensionList(context));
          }
  
          // OpenLayers specific properties go in an Extension element
          node.appendChild(this.write_wmc_LayerExtension(context));
          
          return node;
          
      }
docs: Method: write_wmc_Layer
  Create a Layer node given a layer context object. This method adds
  elements specific to version 1.1.0.
  
  Parameters:
  context - {Object} A layer context object.}
  
  Returns:
  {Element} A WMC Layer element node.