Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
<xsl:variable name="theid1">../<xsl:value-of select="@URL"/>.xml</xsl:variable>
<xsl:variable name="textonpage"><xsl:value-of select="document($theid1)" /></xsl:variable>
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[COMException (0x80004005): The system cannot locate the object specified.
]
MSXML2.IXSLProcessor.transform() +0
Ingeniux.Runtime.LegacyTransformationEngine.Transform(XNode sourceNode, String stylesheetPath, Boolean xslUpdated) +453
Ingeniux.Runtime.DynamicTransformationEngine.Transform(CMSPageRequest pageRequest, String& contentType, String overrideStylesSheetFullPath, Boolean publishMode) +394
Ingeniux.Runtime.Models.XsltTransformResult.ExecuteResult(ControllerContext context) in D:\dev\CMS\xpas_win_8_0\.NETRuntime\Dynamic_Site_Server\Models\XsltTransformResult.cs:38
[InvalidOperationException: Error occurred during XSLT transformation: The system cannot locate the object specified.
]
Ingeniux.Runtime.Models.XsltTransformResult.ExecuteResult(ControllerContext context) in D:\dev\CMS\xpas_win_8_0\.NETRuntime\Dynamic_Site_Server\Models\XsltTransformResult.cs:50
System.Web.Mvc.ControllerActionInvoker.InvokeActionResult(ControllerContext controllerContext, ActionResult actionResult) +13
System.Web.Mvc.<>c__DisplayClass1c.<InvokeActionResultWithFilters>b__19() +23
System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) +260
System.Web.Mvc.<>c__DisplayClass1e.<InvokeActionResultWithFilters>b__1b() +19
System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) +260
System.Web.Mvc.<>c__DisplayClass1e.<InvokeActionResultWithFilters>b__1b() +19
System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext controllerContext, IList`1 filters, ActionResult actionResult) +177
System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName) +343
System.Web.Mvc.Controller.ExecuteCore() +116
System.Web.Mvc.ControllerBase.Execute(RequestContext requestContext) +97
System.Web.Mvc.ControllerBase.System.Web.Mvc.IController.Execute(RequestContext requestContext) +10
System.Web.Mvc.<>c__DisplayClassb.<BeginProcessRequest>b__5() +37
System.Web.Mvc.Async.<>c__DisplayClass1.<MakeVoidDelegate>b__0() +21
System.Web.Mvc.Async.<>c__DisplayClass8`1.<BeginSynchronous>b__7(IAsyncResult _) +12
System.Web.Mvc.Async.WrappedAsyncResult`1.End() +62
System.Web.Mvc.<>c__DisplayClasse.<EndProcessRequest>b__d() +50
System.Web.Mvc.SecurityUtil.<GetCallInAppTrustThunk>b__0(Action f) +7
System.Web.Mvc.SecurityUtil.ProcessInApplicationTrust(Action action) +22
System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) +60
System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.EndProcessRequest(IAsyncResult result) +9
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +9042429
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +184
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1016
<xsl:template match="SiteMapHTML">
<xsl:variable name="breaktitle">Alumni</xsl:variable> <!-- Change this to break at a different point -->
<table>
<tr>
<td width='50%' >
<xsl:for-each select="//Navigation[@Name='HTMLSiteMap']//Page"> <!-- For each node -->
<xsl:variable name="maintitle" select="@PageTitle"/> <!-- Saves title of page -->
<xsl:if test="translate($maintitle, ' ', '')=translate($breaktitle, ' ', '')"> <!-- Strips the spaces and Checks if it is the same as the break title -->
<xsl:value-of select="concat('<', 'td', '>')"
disable-output-escaping="yes" /> <!-- Adds a new colomn-->
</xsl:if>
<!-- This takes text off page. Components have no text, so, if no text no show. :) -->
<xsl:variable name="theid1">../<xsl:value-of select="@URL"/></xsl:variable>
<xsl:variable name="textonpage"><xsl:value-of select="document($theid1)" /></xsl:variable>
<xsl:variable name="depth" select="count(ancestor::*)"/>
<xsl:if test="@Name!='' and
contains(@Schema, 'Component')!='true' and
contains(@Name, 'Component')!='true' and
contains(@Name, 'Box Stories')!='true' and
$textonpage!=''"> <!-- Blank or component? -->
<xsl:choose>
<xsl:when test="$depth=2"> <!-- Neat it's a main node -->
<li><a href="{@URL}"><xsl:value-of select="@Name"/></a></li>
</xsl:when>
<xsl:when test="$depth=3"> <!-- sub node -->
<ul>
<li><a href="{@URL}"><xsl:value-of select="@Name"/></a></li>
</ul>
</xsl:when>
</xsl:choose>
</xsl:if>
</xsl:for-each>
</td>
</tr>
</table>
</xsl:template>