MM_XSLTransform error.
Transformation Error.
XSLTProcessor::transformToDoc(): http://realintelligence.com/customers/expos/00D5f000000Kf85/SNS_xmlcreator/a0q5f000000lcIn_specific-event-list.xml:1: parser error : XML declaration allowed only at the start of the document
XSLTProcessor::transformToDoc(): <?xml
XSLTProcessor::transformToDoc(): ^
XSLTProcessor::transformToDoc(): http://realintelligence.com/customers/expos/00D5f000000Kf85/SNS_xmlcreator/a0q5f000000lcIn_specific-event-list.xml:79: parser error : ParsePI: PI xml never end ...
XSLTProcessor::transformToDoc():
XSLTProcessor::transformToDoc(): ^
XSLTProcessor::transformToDoc(): http://realintelligence.com/customers/expos/00D5f000000Kf85/SNS_xmlcreator/a0q5f000000lcIn_specific-event-list.xml:79: parser error : Start tag expected, '<' not found
XSLTProcessor::transformToDoc():
XSLTProcessor::transformToDoc(): ^ in file index-Details-presentation-2.xsl
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
	xmlns="http://www.w3.org/1999/xhtml" xmlns:func="http://exslt.org/functions" xmlns:my="my"
	xmlns:date="http://exslt.org/dates-and-times" xmlns:exslt="http://exslt.org/common"
	xmlns:math="http://exslt.org/math" extension-element-prefixes="date func exslt math">

	<!--<xsl:output method="xml" encoding="ISO-8859-1" doctype-public="-//WAPFORUM//DTD XHTML Mobile 1.0//EN" doctype-system="http://www.wapforum.org/DTD/xhtml-mobile10.dtd" indent="yes"/>-->
	<xsl:output method="xml" encoding="ISO-8859-1" indent="yes"/>

	<xsl:param name="trackCategory"/>
	<xsl:param name="eventId"/>
	<xsl:param name="papertId"/>    
	<xsl:param name="currentsessionId"/>        
	<xsl:param name="eventFeedUrl"/>
	<xsl:param name="speakerFeedUrl"/>
	<xsl:param name="presentationFeedURL"/>

	<xsl:variable name="firstColumnWidth" select="15"/>

	<xsl:variable name="speakerFeed"
		select="document($speakerFeedUrl)"/>

	<!-- ======================= for dateAdjustment ============================ -->
	<xsl:variable name="eventFeed" select="document($eventFeedUrl)"/>
	<xsl:variable name="timezone"
		select="substring(substring-after($eventFeed/eventsetups/eventsetup[id = $eventId][1]/timezone, 'GMT'), 1, 6)"/>
	<xsl:variable name="duration">
		<xsl:if test="starts-with($timezone, '-')">-</xsl:if>
		<xsl:text>PT</xsl:text>
		<xsl:variable name="H" select="substring-before(substring($timezone, 2), ':')"/>
		<xsl:choose>
			<xsl:when test="starts-with($H, '0')">
				<xsl:value-of select="substring($H, 2)"/>
			</xsl:when>
			<xsl:otherwise>
				<xsl:value-of select="$H"/>
			</xsl:otherwise>
		</xsl:choose>
		<xsl:text>H</xsl:text>
		<xsl:if test="translate(substring-after($timezone, ':'), '0', '')">
			<xsl:value-of select="substring-after($timezone, ':')"/>
			<xsl:text>M</xsl:text>
		</xsl:if>
	</xsl:variable>
	<func:function name="my:dateAdjustment">
		<xsl:param name="sourceDateTime"/>
		<xsl:variable name="dateTimeRaw" select="concat(substring($sourceDateTime, 1, 19), 'Z')"/>
		<func:result>
			<xsl:choose>
				<xsl:when test="translate(substring($timezone, 2, 1), '1234567890', '')">
					<xsl:value-of select="date:date($dateTimeRaw)"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="date:date(date:add($dateTimeRaw, $duration))"/>
				</xsl:otherwise>
			</xsl:choose>
		</func:result>
	</func:function>
	<!-- ================ end of for dateAdjustment ============================ -->


	<xsl:template match="/">
		<html lang="en">
			<head>
				<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
				<link type="text/css"
					href="https://www.flashmemorysummit.com/Styles/FlashMemorySummit_BaseStyle.css"
					rel="stylesheet"/>
				<style>
					html{
					    background: white;
					}
					body{
					    background-image: none;
					    background: white;
					}</style>
				<title>Detailed Program 2</title>
			</head>
			<body>
				<div style="text-align:left;">
					<xsl:apply-templates/>
				</div>
			</body>
		</html>
	</xsl:template>


	<xsl:template match="agendalist">
		<xsl:if test="not(string($timezone))">
			<div class="BodyTextBoldBlue"> Timezone isn't accessible, please provide the correct
				parameters <br/> eventFeedUrl=<xsl:value-of select="$eventFeedUrl"/>
				<br/> trackCategory=<xsl:value-of select="$trackCategory"/>
				<br/> eventID=<xsl:value-of select="$eventId"/>
				<br/> timezone=<xsl:value-of select="$timezone"/>
				<br/> duration=<xsl:value-of select="$duration"/>
			</div>
		</xsl:if>
		<xsl:variable name="filteredAgendas" select="agenda[trackcategory = $trackCategory]"/>
		<table width="98%" border="1" cellspacing="0" cellpadding="4" bordercolor="#CCCCCC">
			<xsl:for-each select="$filteredAgendas">
				<xsl:sort select="datetime"/>
				<xsl:variable name="itemDate" select="my:dateAdjustment(datetime)"/>
				<xsl:variable name="filteredByDateAgendas" select="$filteredAgendas[my:dateAdjustment(datetime) = $itemDate]"/>
				<xsl:if test="count(. | $filteredByDateAgendas[1]) = 1">


                    
					<xsl:for-each select="$filteredByDateAgendas">

						<xsl:sort select="datetime"/>
						<xsl:sort select="name"/>
                                                                    <xsl:choose>
					<xsl:when test="id = $currentsessionId">
						
						<tr>
							<td width="20%" valign="top" class="ProgramTimeBGColorOne">
								<div class="ProgramTime">
									<xsl:call-template name="day-title"/>
									<br/>

									<xsl:value-of select="sessionstarttime"/>
									<xsl:text>-</xsl:text>
									<xsl:value-of select="sessionendtime"/>
								</div>
							</td>
							<td>
								<table>
									<tr>
										<td>
											<xsl:attribute name="class">ProgramBold</xsl:attribute>
											<!--<xsl:variable name="anchorid" select="sessionnum"/>"
								<xsl:text><a id=></xsl:text><xsl:value-of select="$anchorid" /><xsl:text></a></xsl:text> -->
											<!-- <xsl:value-of select="$sessionid"/> -->
											<xsl:variable name="anchorid" select="sessionnum"/>
                                    <a>
      <xsl:attribute name="href" ><!-- create the href attribute -->
          <text>https://realintelligence.com/customers/expos/00D5f000000Kf85/index-Details-iframe.php?eventId=a0q5f000000lcIn&amp;orgId=00D5f000000Kf85&amp;trackCategory=Session#</text><xsl:value-of select="$anchorid"/>
      </xsl:attribute>
      <xsl:attribute name="title" ><text>Click on this to return to the full listing</text>                                       </xsl:attribute>      
      <strong><xsl:value-of select="name"/></strong>
    </a>
											<xsl:text> (</xsl:text>
											<xsl:value-of select="track"/>
											<xsl:text> Track)</xsl:text>
	
										</td>
									</tr>

									<tr>
										<td>
											<xsl:attribute name="class">ProgramTherest</xsl:attribute>
											<xsl:variable name="sessionid" select="id"/>


											<xsl:for-each

											select="$speakerFeed/speakerlist/speaker[sessionid = $sessionid][speakertype = &apos;Organizer&apos; or speakertype = &apos;Chairperson&apos; or speakertype = &apos;Chairperson + Speaker&apos;  or speakertype = &apos;Organizer + Chairperson&apos;or speakertype = &apos;Co-Organizer + Co-Chair&apos; or speakertype = &apos;Co-Organizer&apos; or speakertype = &apos;Organizer + Chairperson + Instructor&apos; or speakertype = &apos;Organizer + Instructor&apos; or speakertype = &apos;Chairperson + Instructor&apos; ]">
												<xsl:value-of select="speakertype"/>
												<xsl:text>: </xsl:text>
												<xsl:value-of select="name"/>
												<xsl:text>, </xsl:text>
												<xsl:value-of select="speakertitle"/>
												<xsl:text>, </xsl:text>
												<xsl:value-of select="account"/>
												<p/>
											</xsl:for-each>


										</td>
									</tr>
									
									<xsl:choose>
										<xsl:when test="sessionformat = 'Panel Session'">
											<tr>
												<td>
													<xsl:attribute name="class">ProgramBold</xsl:attribute>
													<xsl:text>Panel Members: </xsl:text>
													<br/>
												</td>
											</tr>
											<tr>
												<td>
													<blockquote>
														<xsl:attribute name="class"
															>ProgramTherest</xsl:attribute>
														<xsl:variable name="sessionid" select="id"/>
														
														<xsl:for-each
															select="$speakerFeed/speakerlist/speaker[sessionid = $sessionid][speakertype = &apos;Panelist&apos;]">
															<xsl:value-of select="speakertype"/>
															<xsl:text>: </xsl:text>
															<strong><xsl:value-of select="name"/>
															<xsl:text>, </xsl:text>
															<xsl:value-of select="speakertitle"/>
															<xsl:text>, </xsl:text>
															<xsl:value-of select="account"/>
															</strong>
															<p/>
														</xsl:for-each>
													</blockquote>
												</td>
											</tr>
										</xsl:when>
										<xsl:otherwise>

											<tr>
												<td>
													<blockquote>
														<xsl:attribute name="class"
															>ProgramTherest</xsl:attribute>
														<xsl:variable name="sessionid" select="id"/>
														
														<xsl:variable name="presentationFeed"
															select="document($presentationFeedURL)"/>
														<xsl:for-each
															select="$presentationFeed/presentationlist/presentation[id = $paperId]">
															<xsl:sort select="order"/>
                                                            <strong>Paper Title: </strong>
															<xsl:value-of select="name"/>
															<br></br><br></br>
                                                            <p/><strong>Paper Abstract: </strong><xsl:value-of select="abstract"/>
															<br></br><br></br>
                                                            <p/><strong>Paper Author: </strong>
															<xsl:value-of select="speaker"/>
															<xsl:text>, </xsl:text>
															<xsl:value-of select="speakertitle"/>
															<xsl:text>, </xsl:text>
															<xsl:value-of select="account"/>
                                                            <br></br> 
                                                            <xsl:if test="speaker2!=''">
                                                                <xsl:value-of select="speaker2"/>, 
                                                                <xsl:value-of select="speaker2title"/>,  
                                                                <xsl:value-of select="account2"/>           
                                                                <br></br> 
                                                            </xsl:if>
                                                            <xsl:if test="speaker3!=''">
                                                                <xsl:value-of select="speaker3"/>, 
                                                                <xsl:value-of select="speaker3title"/>,  
                                                                <xsl:value-of select="account3"/>           
                                                                <br></br> 
                                                            </xsl:if>                                        <br></br>   	                 
                                                            <p/><strong>Author Bio: </strong>
                                                            <xsl:value-of select="bio"/>
                                                            <br></br><br></br>   
                                                            <xsl:if test="speaker2!=''">
                                                            <p/><strong>Author 2 Bio: </strong>
                                                            <xsl:value-of select="bio2"/>
                                                            <br></br><br></br>        
                                                            </xsl:if>
                                                            <xsl:if test="speaker3!=''">
                                                            <p/><strong>Author 3 Bio: </strong>
                                                            <xsl:value-of select="bio3"/>       
                                                                <br></br><br></br>   
                                                            </xsl:if> 
															<p/>
														</xsl:for-each>
													</blockquote>
												</td>
											</tr>
										</xsl:otherwise>
									</xsl:choose>
									

								</table>
							</td>
						</tr>
						
	                        										</xsl:when>
                        </xsl:choose>
					</xsl:for-each>

				</xsl:if>
			</xsl:for-each>
		</table>
		<div id="Forum-A-31"/>
	</xsl:template>
	
	<xsl:template name="day-title">
		<xsl:variable name="itemDate" select="my:dateAdjustment(datetime)"/>
		<xsl:value-of select="date:day-name($itemDate)"/>
		<xsl:text>, </xsl:text>
		<xsl:value-of select="date:month-name($itemDate)"/>
		<xsl:text> </xsl:text>
		<xsl:variable name="dayNum" select="date:day-in-month($itemDate)"/>
		<xsl:value-of select="$dayNum"/>
		<xsl:choose>
			<xsl:when test="$dayNum = 1 or $dayNum = 21 or $dayNum = 31">st</xsl:when>
			<xsl:when test="$dayNum = 2 or $dayNum = 22">nd</xsl:when>
			<xsl:when test="$dayNum = 3 or $dayNum = 23">rd</xsl:when>
			<xsl:otherwise>th</xsl:otherwise>
		</xsl:choose>
	</xsl:template>
	
</xsl:stylesheet>