title: Is this correct JSONSchema/Json for the XSD?
body: <p>The objective is to convert an XSD schema to JSON Schema.
  I am first trying to XSD to JSON and then see if i can fix the JSON to become JSON Schema.All this procedure is because right now i don't know a direct way of converting XSD to JSON Schema.
  Consider the following fragment for now.
  i have the following fragment of XSD </p>
  
  <pre><code>&lt;attributeGroup name="SimpleObjectAttributeGroup"&gt;
      &lt;attribute ref="s:id"/&gt;
      &lt;attribute ref="s:metadata"/&gt;
      &lt;attribute ref="s:linkMetadata"/&gt;
    &lt;/attributeGroup&gt;
  </code></pre>
  
  <p>The corresponding JSON i get is </p>
  
  <pre><code> "attributeGroup": {
        "name": "SimpleObjectAttributeGroup",
        "attribute": [
          {
            "ref": "s:id"
          },
          {
            "ref": "s:metadata"
          },
          {
            "ref": "s:linkMetadata"
          }
        ]
      }
  </code></pre>
  
  <p>So my question is </p>
  
  <ol>
  <li>is this right ?  </li>
  <li>Should i override the attribue ref as $ref instead of @ref (but that
  would make de serialization tough ) </li>
  <li>Is this conforming to the JSONSchema specification.</li>
  </ol>
  
  <p>The specification can be found at <a href="http://json-schema.org/" rel="nofollow">http://json-schema.org/</a></p>
  
  <p>i used c# and Json.net to achieve this.</p>