Revision 62713
Added by Katerina Iatropoulou over 1 year ago
modules/uoa-search/branches/uoa-search-pre-3.9.4/src/main/resources/json.xsl | ||
---|---|---|
194 | 194 |
<xsl:variable name="t" select="." /> |
195 | 195 |
<xsl:choose> |
196 | 196 |
<!-- test to see if it is a number --> |
197 |
<xsl:when test="(string(number($t)) != 'NaN' and not(starts-with($t,'+')) and not(starts-with($t,'0'))) and (not(local-name(..)='code') and not(local-name(..)='subject')) and not(local-name(..)='originalId')"> |
|
197 |
<xsl:when test="(string(number($t)) != 'NaN' and not(starts-with($t,'+')) and not(starts-with($t,'0'))) and (not(local-name(..)='code') and not(local-name(..)='subject')) and not(local-name(..)='originalId') and not(local-name(..)='rawText')">
|
|
198 | 198 |
<xsl:value-of select="$t"/> |
199 | 199 |
</xsl:when> |
200 | 200 |
<!-- deal with any case booleans --> |
... | ... | |
234 | 234 |
</xsl:when> |
235 | 235 |
<xsl:otherwise> |
236 | 236 |
<xsl:text>"</xsl:text> |
237 |
<xsl:value-of select="$t"/> |
|
237 |
<xsl:call-template name="escape-bs-string"> |
|
238 |
<xsl:with-param name="s" select="$t"/> |
|
239 |
</xsl:call-template> |
|
238 | 240 |
<xsl:text>"</xsl:text> |
239 | 241 |
</xsl:otherwise> |
240 | 242 |
</xsl:choose> |
Also available in: Unified diff
json to parce quotes in attributes + rawText always to be rawText