tag:help-archives.hannonhill.com,2010-02-09:/discussions/xslt-formats/167-json-w-quotes-in-stringCascade CMS: Discussion 2014-03-25T20:56:39Ztag:help-archives.hannonhill.com,2010-02-09:Comment/149137652012-03-30T21:27:53Z2012-03-30T21:46:37ZJSON w/ Quotes in string <div><p>I don't have too much knowledge about how it would play with the
JSON output in the end, have you tried using the XML entity
reference for the character? "</p></div>Charlie Holdertag:help-archives.hannonhill.com,2010-02-09:Comment/149137652012-03-30T21:42:03Z2012-03-30T21:42:03ZJSON w/ Quotes in string <div><p>I get the same result using the entity reference.</p></div>mdcartertag:help-archives.hannonhill.com,2010-02-09:Comment/149137652012-03-30T21:49:40Z2012-03-30T21:49:49ZJSON w/ Quotes in string <div><p>Would using <code><xsl:text
disable-output-escaping="yes"></code> help? I was having issues
outputting XHTML comments in XSLT and that seemed to help stop
rendering some o the tricky chars.</p></div>Charlie Holdertag:help-archives.hannonhill.com,2010-02-09:Comment/149137652012-04-02T17:28:07Z2012-04-02T17:28:07ZJSON w/ Quotes in string <div><p>The issue is not with escaping the output, but rather with the
actual replacement. If I change the \" to something generic like
ABC I still encounter the same issue.</p>
<p>I seems like when cascade runs the XSLT Format it doesn't
recognize the " character at all. As compared to Oxygen were each
occurrence in the sting is modified. I have confirmed that I am
using XALAN in oxygen as well incase it was a difference in
processor.</p></div>mdcartertag:help-archives.hannonhill.com,2010-02-09:Comment/149137652012-04-02T17:53:50Z2012-04-02T17:53:50ZJSON w/ Quotes in string <div><p>Ok... getting away from it for a while helped. I started looking
at it again this morning and was able to get it working using a
more generic template for replacing the quote and passing the quote
as a parameter. Working version attached for reference.</p>
<p>Thanks</p>
<p>-Matt</p></div>mdcartertag:help-archives.hannonhill.com,2010-02-09:Comment/149137652012-04-02T18:02:32Z2012-04-02T18:02:32ZJSON w/ Quotes in string <div><p>Sorry I wasn't able to provide much help. Glad you were able to
figure it out.</p></div>Charlie Holder