Changeset 2395

Show
Ignore:
Timestamp:
10/15/09 12:07:57
Author:
bleibson
Message:

Make the JSON validator at http://www.jsonlint.com pleased with the output of this widget. The JSON should use double-quotes, not single-quotes.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/deployment/webpublic/webapp/resources/demoskins/MainCampus/default/default/widget-json-cats.xsl

    r2384 r2395  
    4343 
    4444  <xsl:template match='/'> 
    45     {'bwCategories': { 
    46         'categories': [ 
     45    {"bwCategories": { 
     46        "categories": [ 
    4747            <xsl:apply-templates select="/bedework/categories/category"/> 
    4848        ] 
     
    6363    <!-- finally, produce the JSON output --> 
    6464            { 
    65                 'keyword' : '<xsl:value-of select="$strippedKeyword"/>'
    66                 'id' : '<xsl:value-of select="id"/>'
    67                 'creator' : '<xsl:value-of select="creator"/>' 
     65                "keyword" : "<xsl:value-of select="$strippedKeyword"/>"
     66                "id" : "<xsl:value-of select="id"/>"
     67                "creator" : "<xsl:value-of select="creator"/>" 
    6868            }<xsl:if test="position() != last()">,</xsl:if> 
    6969  </xsl:template>