American College of Gastroenterology Invites Applications for 2015 Clinical Research Awards

Loading...
Error: Error transforming XML with XSLT.
An error occurred while loading document 'http://www.dshs.state.tx.us/WorkArea/ewebeditpro/cmsdatalist.aspx?id=35465&LangType=1033'. The remote server returned an error: (400) Bad Request.
Line: 0
Position: 0

at Ektron.Cms.EkXml.XSLTransform1(String XmlDoc, String XsltDoc, Boolean XsltAsFile, Boolean XmlAsFile, XsltArgumentList XsltArgs, Boolean ReturnExceptionMessage, XmlResolver DocumentResolver, Double cacheInterval)


XML:
<root><grantdata><title>American College of Gastroenterology Invites Applications for 2015 Clinical Research Awards</title><subjects><subject>health professions training</subject><subject>medical research</subject></subjects><selectedsubjects>health professions training medical research</selectedsubjects><sources><source>American College of Gastroenterology</source></sources><selectedsources>American College of Gastroenterology</selectedsources><funding_level>Private</funding_level><purpose>The American College of Gastroenterology aims to advance care for patients with gastrointestinal disorders through excellence, innovation, and advocacy in the areas of scientific investigation, education, prevention, and treatment. To that end, ACG is accepting applications for its 2015 Clinical Research Awards. Through the program, grants of up to $35,000 will be awarded in support of original research in clinical gastroenterology. Awardees will be selected based on project feasibility, scientific and clinical significance, originality, anticipated contribution of the research to clinical practice, and the availability of adequate resources, including personnel and facilities. The program also will consider pilot projects for grants of up to $10,000.</purpose><eligibility>To be eligible, at least one of the investigators must be an ACG member or trainee member at the time of grant proposal submission. Note that physicians in training (interns, residents, fellows) are eligible to apply provided that the work is conducted under the preceptorship of a more senior or experienced investigator.</eligibility><alert>25.06.03</alert><deadline>12/5/14.</deadline><entry_date>2014-06-17</entry_date><expiry_date>2014-12-05</expiry_date><available_amount>Please see PURPOSE section for funding information.</available_amount><cfda>none</cfda><contact>Please see URL for contact information.</contact><url><a title="http://gi.org/research-and-awards/grant-announcements/#crg" href="http://gi.org/research-and-awards/grant-announcements/#crg"></a></url><from>The Foundation Center's Philanthropy News Digest RFP Bulletin email, 6/6/14</from></grantdata></root>



XSLT:
<xsl:stylesheet version="1.0" extension-element-prefixes="msxsl" exclude-result-prefixes="msxsl js dl" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:js="urn:custom-javascript" xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:dl="urn:datalist"> <xsl:output method="xml" version="1.0" omit-xml-declaration="yes" indent="yes" encoding="utf-8" /> <xsl:strip-space elements="*" /> <xsl:variable name="ektdesignns_fieldlist" select="/*/ektdesignpackage_list/fieldlist" /> <xsl:param name="baseURL" select="''" /> <xsl:param name="LangType" select="''" /> <dl:root> <datalist name="IDAGCW1B"><item value="Federal">Federal</item><item value="State">State</item><item value="Private">Private</item></datalist> </dl:root> <xsl:template name="safeUri"> <xsl:param name="uri" select="''" /> <xsl:variable name="uri-lang"> <xsl:choose> <xsl:when test="string-length($LangType) &gt; 0 and contains($uri,'&amp;LangType=-1')"> <xsl:value-of select="substring-before($uri,'&amp;LangType=-1')" /> <xsl:value-of select="concat('&amp;LangType=',$LangType)" /> <xsl:value-of select="substring-after($uri,'&amp;LangType=-1')" /> </xsl:when> <xsl:when test="contains($uri,'&amp;LangType=-1')"> <xsl:value-of select="substring-before($uri,'&amp;LangType=-1')" /> <xsl:value-of select="substring-after($uri,'&amp;LangType=-1')" /> </xsl:when> <xsl:otherwise> <xsl:value-of select="$uri" /> </xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:choose> <xsl:when test="starts-with($uri-lang,'//') or contains($uri-lang,':')"> <xsl:value-of select="$uri-lang" /> </xsl:when> <xsl:when test="starts-with($uri-lang,'/') or substring($baseURL,string-length($baseURL),1)='/'"> <xsl:value-of select="concat($baseURL,$uri-lang)" /> </xsl:when> <xsl:otherwise> <xsl:value-of select="concat($baseURL,'/',$uri-lang)" /> </xsl:otherwise> </xsl:choose> </xsl:template> <xsl:template match="/" xml:space="preserve"> <span style="display:none"> </span><script language="JavaScript" type="text/javascript" defer="defer"><xsl:comment xml:space="preserve"><xsl:text> function ektLocalizeDate(date, id) { setTimeout(function() { if (document.getElementById &amp;&amp; 10 == date.length) { var oTempDate = new Date(date.substr(0,4), parseInt(date.substr(5,2),10)-1, date.substr(8,2)); document.getElementById(id).innerHTML=(oTempDate.toLocaleDateString ? oTempDate.toLocaleDateString() : oTempDate.toLocaleString()); } }, 1); } // </xsl:text></xsl:comment></script> <fieldset id="grantdata" title="grantdata"> <legend>grantdata</legend> <div> <p> </p> <p> <strong>Title:</strong> <xsl:value-of select="/root/grantdata/title" /> </p> <p> </p> <fieldset id="subjects" title="subjects"> <legend>subjects</legend> <div> <p>Select Subject(s):  <xsl:if test="count(/root/grantdata/subjects/subject) &gt; 0"> <xsl:if test="true()"> <xsl:variable name="dl-url"> <xsl:call-template name="safeUri"> <xsl:with-param name="uri" select="'/WorkArea/ewebeditpro/cmsdatalist.aspx?id=35465&amp;LangType=-1'" /> </xsl:call-template> </xsl:variable> <xsl:variable name="dl" select="document(normalize-space($dl-url))/CmsDataList/ol/li" /> <xsl:variable name="datalistKey" select="'cms35465'" /> <xsl:variable name="datalist" select="$dl" /> <ul> <xsl:for-each select="/root/grantdata/subjects/subject"> <xsl:variable name="value" select="string(.)" /> <xsl:variable name="display-value" select="($dl[@title=$value])[1]/." /> <li> <xsl:choose> <xsl:when test="$display-value"> <xsl:copy-of select="$display-value/node()" /> </xsl:when> <xsl:otherwise> <xsl:copy-of select="./node()" /> </xsl:otherwise> </xsl:choose> </li> </xsl:for-each> </ul> </xsl:if> </xsl:if> </p> <p> </p> </div> </fieldset> <p>Selected Subjects:<xsl:value-of select="/root/grantdata/selectedsubjects" /> </p> <p> </p> <fieldset id="sources" title="sources"> <legend>sources</legend> <div> <p>Select Source(s):<xsl:if test="count(/root/grantdata/sources/source) &gt; 0"> <xsl:if test="true()"> <xsl:variable name="dl-url"> <xsl:call-template name="safeUri"> <xsl:with-param name="uri" select="'/WorkArea/ewebeditpro/cmsdatalist.aspx?id=35464&amp;LangType=-1'" /> </xsl:call-template> </xsl:variable> <xsl:variable name="dl" select="document(normalize-space($dl-url))/CmsDataList/ol/li" /> <xsl:variable name="datalistKey" select="'cms35464'" /> <xsl:variable name="datalist" select="$dl" /> <ul> <xsl:for-each select="/root/grantdata/sources/source"> <xsl:variable name="value" select="string(.)" /> <xsl:variable name="display-value" select="($dl[@title=$value])[1]/." /> <li> <xsl:choose> <xsl:when test="$display-value"> <xsl:copy-of select="$display-value/node()" /> </xsl:when> <xsl:otherwise> <xsl:copy-of select="./node()" /> </xsl:otherwise> </xsl:choose> </li> </xsl:for-each> </ul> </xsl:if> </xsl:if> </p> <p> </p> </div> </fieldset> <p>Selected Sources: <xsl:value-of select="/root/grantdata/selectedsources" /> <br /> </p> <p>Funding Level:  <xsl:if test="true()"> <xsl:variable name="dl" select="document('')/*/dl:*/datalist[@name='IDAGCW1B']/item" /> <xsl:variable name="datalistKey" select="'IDAGCW1B'" /> <xsl:variable name="datalist" select="$dl" /> <xsl:variable name="value" select="string(/root/grantdata/funding_level)" /><xsl:variable name="display-value" select="($dl[@value=$value])[1]/." /><xsl:choose><xsl:when test="$display-value"><xsl:copy-of select="$display-value/node()" /></xsl:when><xsl:otherwise><xsl:copy-of select="/root/grantdata/funding_level/node()" /></xsl:otherwise></xsl:choose> </xsl:if>  </p> <p> </p> <p>Purpose:<pre><xsl:copy-of select="/root/grantdata/purpose/node()" /></pre>  </p> <p>Eligibility:<pre><xsl:copy-of select="/root/grantdata/eligibility/node()" /></pre>  </p> <p>Alert: <xsl:if test="true()"> <xsl:variable name="dl-url"> <xsl:call-template name="safeUri"> <xsl:with-param name="uri" select="'/WorkArea/ewebeditpro/cmsdatalist.aspx?id=35463&amp;LangType=-1'" /> </xsl:call-template> </xsl:variable> <xsl:variable name="dl" select="document(normalize-space($dl-url))/CmsDataList/ol/li" /> <xsl:variable name="datalistKey" select="'cms35463'" /> <xsl:variable name="datalist" select="$dl" /> <xsl:variable name="value" select="string(/root/grantdata/alert)" /><xsl:variable name="display-value" select="($dl[@title=$value])[1]/." /><xsl:choose><xsl:when test="$display-value"><xsl:copy-of select="$display-value/node()" /></xsl:when><xsl:otherwise><xsl:copy-of select="/root/grantdata/alert/node()" /></xsl:otherwise></xsl:choose> </xsl:if> </p> <p>Deadline: <xsl:value-of select="/root/grantdata/deadline" /> </p> <p>Entry Date: <xsl:if test="true()"><xsl:variable name="date" select="/root/grantdata/entry_date" /><xsl:variable name="id" select="generate-id($date)" /><span id="{$id}"><xsl:value-of select="$date" /></span><script language="JavaScript" type="text/javascript" defer="defer"><xsl:comment xml:space="preserve"> ektLocalizeDate('<xsl:value-of select="$date" />','<xsl:value-of select="$id" />') // </xsl:comment></script></xsl:if>  </p> <p>Expiry Date:<xsl:if test="true()"><xsl:variable name="date" select="/root/grantdata/expiry_date" /><xsl:variable name="id" select="generate-id($date)" /><span id="{$id}"><xsl:value-of select="$date" /></span><script language="JavaScript" type="text/javascript" defer="defer"><xsl:comment xml:space="preserve"> ektLocalizeDate('<xsl:value-of select="$date" />','<xsl:value-of select="$id" />') // </xsl:comment></script></xsl:if> </p> <p>Available Amount: <xsl:value-of select="/root/grantdata/available_amount" /> </p> <p>CFDA:<xsl:value-of select="/root/grantdata/cfda" /> </p> <p>Contact:<xsl:value-of select="/root/grantdata/contact" /> </p> <p>URL: <xsl:copy-of select="/root/grantdata/url/node()" /> </p> <p>From: <xsl:value-of select="/root/grantdata/from" /> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> </div> </fieldset> </xsl:template> </xsl:stylesheet>


Full Page
Last updated June 17, 2014