Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Connie DeCinko 931 posts 1160 karma points
    Feb 15, 2011 @ 19:21
    Connie DeCinko
    0

    Simple Javascript call fails with unexpected token

    I am trying to call an RSS feed via a script tag.  I put this in an XSLT so I can wrap in a macro, however it won't save.

    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE xsl:stylesheet [ <!ENTITY nbsp "&#x00A0;"> ]>
    <xsl:stylesheet
      version="1.0"
      xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
      xmlns:msxml="urn:schemas-microsoft-com:xslt"
      xmlns:umbraco.library="urn:umbraco.library" xmlns:Exslt.ExsltCommon="urn:Exslt.ExsltCommon" xmlns:Exslt.ExsltDatesAndTimes="urn:Exslt.ExsltDatesAndTimes" xmlns:Exslt.ExsltMath="urn:Exslt.ExsltMath" xmlns:Exslt.ExsltRegularExpressions="urn:Exslt.ExsltRegularExpressions" xmlns:Exslt.ExsltStrings="urn:Exslt.ExsltStrings" xmlns:Exslt.ExsltSets="urn:Exslt.ExsltSets" xmlns:PS.XSLTsearch="urn:PS.XSLTsearch"
      exclude-result-prefixes="msxml umbraco.library Exslt.ExsltCommon Exslt.ExsltDatesAndTimes Exslt.ExsltMath Exslt.ExsltRegularExpressions Exslt.ExsltStrings Exslt.ExsltSets PS.XSLTsearch ">


    <xsl:output method="xml" omit-xml-declaration="yes"/>

    <xsl:param name="currentPage"/>

    <xsl:template match="/">

    <!-- insert West's Jury Verdicts - Arizona Reports rss feed here -->
      <a href="http://www.westsjuryverdicts.com/AZBar/" target="_blank"><strong>Arizona Verdicts</strong></a><br />
      <em style="font-size:9px;">by: West&#8217;s Jury Verdicts - Arizona Reports</em><br />
      <br />
      <div style="margin:5px;">
        <script type="text/javascript" src="http://output40.rssinclude.com/output?type=js&id=16668&hash=9925405d15ea82d4ee"></script>
      </div>

    </xsl:template>

    </xsl:stylesheet>
  • Tom Fulton 2030 posts 4998 karma points c-trib
    Feb 15, 2011 @ 19:23
    Tom Fulton
    0

    Hi Connie,

    Try replacing the ampersands in the src attribute with &amp, ie:

     <script type="text/javascript" src="http://output40.rssinclude.com/output?type=js&amp;id=16668&amp;hash=9925405d15ea82d4ee"></script>

    -Tom

Please Sign in or register to post replies

Write your reply to:

Draft