Copied to clipboard

Flag this post as spam?

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


  • Robin Nicholl 137 posts 277 karma points
    Dec 10, 2010 @ 13:49
    Robin Nicholl
    0

    Display alternate image if it exists

    I need to be able to show either the 'main image' or an alternative image if it exists.

    I currently have:

    <xsl:if test="string(current()/alternateEventImage) != ''">
        <img src="{current()/alternateEventImage}" alt="{current()/alternateEventImageAltAndTitle}" title="{current()/alternateEventImageAltAndTitle}" />
      </xsl:if>
      <xsl:if test="string(current()/alternateEventImage) = ''">
        <img src="{current()/eventImage}" alt="{current()/eventImageAltAndTitle}" title="{current()/eventImageAltAndTitle}" />
      </xsl:if>

    I have previously tried it with when/otherwise, but couldn't get that to work either.

  • Robin Nicholl 137 posts 277 karma points
    Dec 10, 2010 @ 14:00
    Robin Nicholl
    0

    Perhaps I should clarify. I want to do this if alternateEventImage exists (has been uploaded to the page node under Content:

    <img src='<umbraco:Item field="alternateEventImage" runat="server"></umbraco:Item>' width="540" height="190"
            title='<umbraco:Item field="alternateEventImageAltAndTitle" runat="server"></umbraco:Item>'
            alt='<umbraco:Item field="alternateEventImageAltAndTitle" runat="server"></umbraco:Item>' />

    Or this if alternateEventImage does not exist:

    <img src='<umbraco:Item field="eventImage" runat="server"></umbraco:Item>' width="540" height="190"
            title='<umbraco:Item field="eventImageAltAndTitle" runat="server"></umbraco:Item>'
            alt='<umbraco:Item field="eventImageAltAndTitle" runat="server"></umbraco:Item>' />

  • Kim Andersen 1447 posts 2196 karma points MVP
    Dec 10, 2010 @ 15:54
    Kim Andersen
    0

    Hi Robin

    This should be possible through XSLT.

    If you know how to use a <xsl:choose> let's work with that.Let's say that you have two media pickers called "alternateEventImage" and "eventImage". You should be able to do something like this if we are working inside a for-each (it looks like that in your first post since you're using the current() ):

    <xsl:for-each select="...">
    <xsl:choose>
    <xsl:when test="./alternateEventImage != ''">
    <xsl:variable name="img" select="umbraco.library:GetMedia(./alternateEventImage,0)" />
    <img src="{$img/umbracoFile}" alt="{$img/@nodeName}" title="{$img/@nodeName}" />
    </xsl:when>
    <xsl:when test="./eventImage != ''">
    <xsl:variable name="img" select="umbraco.library:GetMedia(./eventImage,0)" />
    <img src="{$img/umbracoFile}" alt="{$img/@nodeName}" title="{$img/@nodeName}" />
    </xsl:when>
    </xsl:choose>
    </xsl:for-each>

    This is not the most beatiful code, and you could solve the problem in other ways, but when you already know how a <xsl:choose> works, I think that you'll understand this pretty fast.

    What the code does, is first checking if the alternativeEventImage media picker has a selected media node. If that's not the case, then we're trying out the eventImage media picker. If none of the two media pickers has got a value, then nothing will be rendered in the frontend.

    /Kim A

  • Robin Nicholl 137 posts 277 karma points
    Dec 10, 2010 @ 23:03
    Robin Nicholl
    0

    Hi Kim

    Thanks for that, but I'm afraid it doesn't work for what  need to do. I'm dealing with images on the current page, not a child node.

    I'm trying to say "If imageB exists for this page, show it; otherwise, show imageA". It's an Event page – imageA is for display by the parent page; imageB (which may or may not exist) is for display on the Event page itself.

  • Kim Andersen 1447 posts 2196 karma points MVP
    Dec 11, 2010 @ 00:19
    Kim Andersen
    0

    Okay so imageB(alternateEventImage) is located on the current page and imageA(eventImage) is located on the parent page. Am I right?

    If that's the case, you can change the code in my first post to something this:

    <xsl:choose>
         
    <xsl:when test="$currentPage/alternateEventImage != ''">
             
    <xsl:variable name="img" select="umbraco.library:GetMedia($currentPage/alternateEventImage,0)" />
             
    <img src="{$img/umbracoFile}" alt="{$img/@nodeName}" title="{$img/@nodeName}" />
         
    </xsl:when>
         
    <xsl:when test="$currentPage/../eventImage != ''">
             
    <xsl:variable name="img" select="umbraco.library:GetMedia($currentPage/../eventImage,0)" />
             
    <img src="{$img/umbracoFile}" alt="{$img/@nodeName}" title="{$img/@nodeName}" />
         
    </xsl:when>
    </xsl:choose>

    Does that work, and did I understand your content structure the right way?

    /Kim A

  • Robin Nicholl 137 posts 277 karma points
    Dec 11, 2010 @ 02:04
    Robin Nicholl
    0

    Just can't get this to work! When/otherwise logic is fine (tested by rendering plain text to page). However, image just doesn't render. I get "Error parsing XSLT file: \xslt\placeEventImage.xslt". If I try to put in the <xsl:otherwise> part I get an error when saving the XSLT file (see below), so I'll just concentate on the <xsl:when...> part here.

    <xsl:choose>
      <xsl:when test="$currentPage/alternateEventImage != ''">
    <xsl:variable name="img" select="umbraco.library:GetMedia($currentPage/alternateEventImage,0)" />
       
    <img src="{$img/umbracoFile}" alt="{$img/@nodeName}" title="{$img/@nodeName}" />
    </xsl:when>
    </xsl:choose>

    I've also tried it with the following code inside <xsl:when...>:

    <img alt="{$currentPage/@nodeName}" class="news_image">
      <xsl:attribute name="src">
        <xsl:value-of select="umbraco.library:GetMedia($currentPage/newsImage, false() )/umbracoFile" />
      </xsl:attribute>
    </img>

    By the way, both images are on the current page.

    First line of error mentioned above (when using both 'when' and 'otherwise'):

    System.OverflowException: Value was either too large or too small for an Int32.

     

  • Kim Andersen 1447 posts 2196 karma points MVP
    Dec 11, 2010 @ 12:02
    Kim Andersen
    0

    The error that you get with System.OverflowException etc. occurs because you haven't tested if the media picker has a value or not. When you hit the Save-button the XSLT-file tries to run the code, and at that time the "newsImage"-fields doesn't have a value, so the GetMedia extension will fail. You should be able to check if the property has a value by changing your code to this:

    <xsl:if test="$currentPage/newsImage != ''">
    <img
    alt="{$currentPage/@nodeName}" class="news_image">
     
    <xsl:attribute name="src">
       
    <xsl:value-of select="umbraco.library:GetMedia($currentPage/newsImage, false() )/umbracoFile" />
     
    </xsl:attribute>
    </img>
    </xsl:if>

     

    If both of the images are placed on the current page, you should be able to change the code to this (without the ../):

    <xsl:choose>
         
    <xsl:when test="$currentPage/alternateEventImage != ''">
             
    <xsl:variable name="img" select="umbraco.library:GetMedia($currentPage/alternateEventImage,0)" />
             
    <img src="{$img/umbracoFile}" alt="{$img/@nodeName}" title="{$img/@nodeName}" />
         
    </xsl:when>
         
    <xsl:when test="$currentPage/eventImage != ''">
             
    <xsl:variable name="img" select="umbraco.library:GetMedia($currentPage/eventImage,0)" />
             
    <img src="{$img/umbracoFile}" alt="{$img/@nodeName}" title="{$img/@nodeName}" />
         
    </xsl:when>
    </xsl:choose>

    You say that you get the "Error parsing XSLT file"-error with that code. Could you try adding ?umbdebugshowtrace=true to the URL of that page? Then you can maybe see the error that occurs when you scroll down the page. And if so, could you please provide us with the description of the error?

    /Kim A

  • Robin Nicholl 137 posts 277 karma points
    Dec 12, 2010 @ 22:43
    Robin Nicholl
    0

    Yes, still getting that error. Trace output is:

    umbracoMacro InnerException Value was either too large or too small for an Int32.
    Value was either too large or too small for an Int32.
      at System.Convert.ToInt32(Double value)
      at System.Convert.ChangeType(Object value, Type conversionType, IFormatProvider provider)
      at System.Xml.Xsl.Runtime.XmlQueryRuntime.ChangeTypeXsltArgument(XmlQueryType xmlType, Object value, Type destinationType)
      at System.Xml.Xsl.Runtime.XmlQueryContext.InvokeXsltLateBoundFunction(String name, String namespaceUri, IList`1[] args)
      at System.Xml.Xsl.CompiledQuery.Query.<xsl:template match="/">(XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}runtime, XPathNavigator {urn:schemas-microsoft-com:xslt-debug}current, Double {urn:schemas-microsoft-com:xslt-debug}position, Double {urn:schemas-microsoft-com:xslt-debug}last, IList`1 {urn:schemas-microsoft-com:xslt-debug}namespaces) in C:\virtualservers\stp.urltba.com\xslt\placeEventImage.xslt:line 19
      at System.Xml.Xsl.CompiledQuery.Query.<xsl:apply-templates>(XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}runtime, XPathNavigator , Double , Double )
      at System.Xml.Xsl.CompiledQuery.Query.Root(XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}runtime)
      at System.Xml.Xsl.CompiledQuery.Query.Execute(XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}runtime)
      at System.Xml.Xsl.XmlILCommand.Execute(Object defaultDocument, XmlResolver dataSources, XsltArgumentList argumentList, XmlWriter writer, Boolean closeWriter)
      at System.Xml.Xsl.XmlILCommand.Execute(IXPathNavigable contextDocument, XmlResolver dataSources, XsltArgumentList argumentList, XmlWriter results)
      at System.Xml.Xsl.XslCompiledTransform.Transform(IXPathNavigable input, XsltArgumentList arguments, TextWriter results)
      at umbraco.macro.GetXsltTransformResult(XmlDocument macroXML, XslCompiledTransform xslt, Dictionary`2 parameters)
      at umbraco.macro.GetXsltTransformResult(XmlDocument macroXML, XslCompiledTransform xslt)
      at umbraco.macro.loadMacroXSLT(macro macro, Hashtable attributes, Hashtable pageElements)
  • Kim Andersen 1447 posts 2196 karma points MVP
    Dec 13, 2010 @ 00:22
    Kim Andersen
    0

    Could you try showing us your entire XSLT code from placeEventImage.xslt?

    I have a feeling that we're missing something obvious here, but if you could show us your entire code it would be helpful :)

    /Kim A

  • Robin Nicholl 137 posts 277 karma points
    Dec 13, 2010 @ 00:38
    Robin Nicholl
    0

    I am new to Umbraco, so it is bound to be something obvious (to all but me!)…

    Request Details
    Session Id: qwxm1v45nestjo45s1r3pueu Request Type: GET
    Time of Request: 12/12/2010 11:35:44 PM Status Code: 200
    Request Encoding: Unicode (UTF-8) Response Encoding: Unicode (UTF-8)
    Trace Information
    Category Message From First(s) From Last(s)
    aspx.page Begin PreInit
    umbracoInit handling request 5.8107943886723E-05 0.000058
    request handler current url '/events/christmas-launches-with-a-performance-from-leo-(formerly-of-the-streets).aspx' 0.000279365114840015 0.000221
    umbracoRequestHandler Just before xPath query (True, '1112') 0.00462097836456868 0.004342
    umbracoRequestHandler After xPath query 0.00468523234098188 0.000064
    umbracoRequestHandler Access checking started 0.00476513076382613 0.000080
    umbracoRequestHandler Page not protected 0.00481318156357861 0.000048
    umbracoRequestHandler Access checking ended 0.00484419109132585 0.000031
    umbracoInit Done handling request 0.00486765776097241 0.000023
    umbracoPage Element loaded: eventStartDateTime 0.00549036260195081 0.000623
    umbracoPage Element loaded: eventImage 0.00553506102032521 0.000045
    umbracoPage Element loaded: eventThumbnail 0.00558506737588157 0.000050
    umbracoPage Element loaded: eventSummary 0.00563563246166761 0.000051
    umbracoPage Element loaded: eventImageAltAndTitle 0.00568675627768334 0.000051
    umbracoPage Element loaded: eventDetails 0.0057311753309429 0.000044
    umbracoPage Element loaded: alternateEventImage 0.00577280073305406 0.000042
    umbracoPage Element loaded: eventLocationName 0.00582085153280654 0.000048
    umbracoPage Element loaded: alternateEventThumbnail 0.00586219756980287 0.000041
    umbracoPage Element loaded: eventLocationAddress 0.00597254679016467 0.000110
    umbracoPage Element loaded: alternateEventImageAltAndTitle 0.00601556901785003 0.000043
    umbracoPage Element loaded: pageTitle 0.00605663568973152 0.000041
    umbracoPage Element loaded: metaDescription 0.00610636268017304 0.000050
    umbracoPage Element loaded: metaKeywords 0.00614687062182484 0.000041
    umbracoPage Pagedata loaded for Christmas launches with a performance from Leo (formerly of The Streets) (ID: 1112) 0.00617927697514628 0.000032
    aspx.page End PreInit 0.0313847150964718 0.025205
    aspx.page Begin Init 0.0314299722450758 0.000045
    item Start parsing 'pageTitle' 0.0314953436819484 0.000065
    item Done parsing 'pageTitle' 0.0315738452792185 0.000079
    item.recursive Item loaded from 1112 0.0316964865646332 0.000123
    item Start parsing 'metaDescription' 0.031723026250543 0.000027
    item Done parsing 'metaDescription' 0.0317735913363291 0.000051
    item.recursive Item loaded from 1112 0.0318364484871681 0.000063
    item Start parsing 'metaKeywords' 0.0318741627776715 0.000038
    item Done parsing 'metaKeywords' 0.0319191405611607 0.000045
    umbracoMacro Macro loaded from cache (ID: 3, J Query Standard) 0.0320132866048618 0.000094
    renderMacro Rendering started (macro: J Query Standard, type: 1, cacheRate: 0) 0.0320515596255949 0.000038
    umbracoMacro Before adding extensions 0.0321915215481297 0.000140
    umbracoXsltExtension Extension added: urn:Exslt.ExsltCommon, ExsltCommon 0.0330986200760152 0.000907
    umbracoXsltExtension Extension added: urn:Exslt.ExsltDatesAndTimes, ExsltDatesAndTimes 0.0331416423037006 0.000043
    umbracoXsltExtension Extension added: urn:Exslt.ExsltMath, ExsltMath 0.0331743280221369 0.000033
    umbracoXsltExtension Extension added: urn:Exslt.ExsltRegularExpressions, ExsltRegularExpressions 0.033207293105688 0.000033
    umbracoXsltExtension Extension added: urn:Exslt.ExsltStrings, ExsltStrings 0.0332461248566508 0.000039
    umbracoXsltExtension Extension added: urn:Exslt.ExsltSets, ExsltSets 0.0332782518448574 0.000032
    umbracoMacro After adding extensions 0.0333067470865711 0.000028
    umbracoMacro Before performing transformation 0.0333492105840267 0.000042
    umbracoMacro After performing transformation 0.0340696932151991 0.000720
    umbracoMacro Macro loaded from cache (ID: 19, J Query Carou Fred Sel) 0.0341241694125929 0.000054
    renderMacro Rendering started (macro: J Query Carou Fred Sel, type: 1, cacheRate: 0) 0.0341548995752253 0.000031
    umbracoMacro Before adding extensions 0.0342244614888205 0.000070
    umbracoXsltExtension Extension added: urn:Exslt.ExsltCommon, ExsltCommon 0.0346245123332714 0.000400
    umbracoXsltExtension Extension added: urn:Exslt.ExsltDatesAndTimes, ExsltDatesAndTimes 0.0346552424959038 0.000031
    umbracoXsltExtension Extension added: urn:Exslt.ExsltMath, ExsltMath 0.0346815028166988 0.000026
    umbracoXsltExtension Extension added: urn:Exslt.ExsltRegularExpressions, ExsltRegularExpressions 0.0347072044072641 0.000026
    umbracoXsltExtension Extension added: urn:Exslt.ExsltStrings, ExsltStrings 0.034738772665241 0.000032
    umbracoXsltExtension Extension added: urn:Exslt.ExsltSets, ExsltSets 0.0347650329860359 0.000026
    umbracoMacro After adding extensions 0.0347890583859122 0.000024
    umbracoMacro Before performing transformation 0.0348231409299227 0.000034
    umbracoMacro After performing transformation 0.0350237250823778 0.000201
    umbracoMacro Macro loaded from cache (ID: 20, Place News) 0.0350709377867858 0.000047
    renderMacro Rendering started (macro: Place News, type: 1, cacheRate: 0) 0.0351013885843033 0.000030
    umbracoMacro Before adding extensions 0.0351670393862907 0.000066
    umbracoXsltExtension Extension added: urn:Exslt.ExsltCommon, ExsltCommon 0.0355573124517222 0.000390
    umbracoXsltExtension Extension added: urn:Exslt.ExsltDatesAndTimes, ExsltDatesAndTimes 0.0355874838841249 0.000030
    umbracoXsltExtension Extension added: urn:Exslt.ExsltMath, ExsltMath 0.0356143029351496 0.000027
    umbracoXsltExtension Extension added: urn:Exslt.ExsltRegularExpressions, ExsltRegularExpressions 0.0356427981768633 0.000028
    umbracoXsltExtension Extension added: urn:Exslt.ExsltStrings, ExsltStrings 0.0356754838952995 0.000033
    umbracoXsltExtension Extension added: urn:Exslt.ExsltSets, ExsltSets 0.0357017442160945 0.000026
    umbracoMacro After adding extensions 0.0357257696159707 0.000024
    umbracoMacro Before performing transformation 0.0357598521599812 0.000034
    umbracoMacro After performing transformation 0.0360881061699182 0.000328
    umbracoMacro Macro loaded from cache (ID: 11, XSLTsearch) 0.0361599030044321 0.000072
    renderMacro Rendering started (macro: XSLTsearch, type: 1, cacheRate: 0) 0.0361900744368348 0.000030
    umbracoMacro Xslt node adding search start (showOrdinals,'1') 0.0362772363526649 0.000087
    umbracoMacro Xslt node adding search start (previewFields,'pageTitle,pageContent') 0.0363219347710393 0.000045
    umbracoMacro Xslt node adding search start (showScores,'1') 0.0363546204894756 0.000033
    umbracoMacro Xslt node adding search start (showStats,'1') 0.0363892617637158 0.000035
    umbracoMacro Xslt node adding search start (searchBoxLocation,'top') 0.0364283728797934 0.000039
    umbracoMacro Xslt node adding search start (previewChars,'20') 0.0364666459005265 0.000038
    umbracoMacro Xslt node adding search start (previewType,'beginning') 0.0364996109840776 0.000033
    umbracoMacro Xslt node adding search start (resultsPerPage,'5') 0.036544309402452 0.000045
    umbracoMacro Xslt node adding search start (showPageRange,'1') 0.0365761570255438 0.000032
    umbracoMacro Xslt node adding search start (searchFields,'pageTitle,pageContent') 0.0366166649671956 0.000041
    umbracoMacro Before adding extensions 0.0366529824321248 0.000036
    umbracoXsltExtension Extension added: urn:Exslt.ExsltCommon, ExsltCommon 0.037012245969809 0.000359
    umbracoXsltExtension Extension added: urn:Exslt.ExsltDatesAndTimes, ExsltDatesAndTimes 0.0370426967673266 0.000030
    umbracoXsltExtension Extension added: urn:Exslt.ExsltMath, ExsltMath 0.0370692364532364 0.000027
    umbracoXsltExtension Extension added: urn:Exslt.ExsltRegularExpressions, ExsltRegularExpressions 0.0370952174089165 0.000026
    umbracoXsltExtension Extension added: urn:Exslt.ExsltStrings, ExsltStrings 0.0371206396343669 0.000025
    umbracoXsltExtension Extension added: urn:Exslt.ExsltSets, ExsltSets 0.0371460618598174 0.000025
    umbracoMacro After adding extensions 0.0371762332922201 0.000030
    umbracoMacro Before performing transformation 0.0372103158362306 0.000034
    umbracoMacro After performing transformation 0.0377757508286668 0.000565
    umbracoMacro Macro loaded from cache (ID: 29, Place Event Image) 0.0378293889307161 0.000054
    renderMacro Rendering started (macro: Place Event Image, type: 1, cacheRate: 0) 0.0378601190933485 0.000031
    umbracoMacro Before adding extensions 0.0379207413232687 0.000061
    umbracoXsltExtension Extension added: urn:Exslt.ExsltCommon, ExsltCommon 0.0382833572423311 0.000363
    umbracoXsltExtension Extension added: urn:Exslt.ExsltDatesAndTimes, ExsltDatesAndTimes 0.0383191159770306 0.000036
    umbracoXsltExtension Extension added: urn:Exslt.ExsltMath, ExsltMath 0.0383459350280552 0.000027
    umbracoXsltExtension Extension added: urn:Exslt.ExsltRegularExpressions, ExsltRegularExpressions 0.0383721953488502 0.000026
    umbracoXsltExtension Extension added: urn:Exslt.ExsltStrings, ExsltStrings 0.038405719162631 0.000034
    umbracoXsltExtension Extension added: urn:Exslt.ExsltSets, ExsltSets 0.0384344937694595 0.000029
    umbracoMacro After adding extensions 0.0384587985344506 0.000024
    umbracoMacro Before performing transformation 0.0384928810784611 0.000034
    umbracoMacro InnerException Value was either too large or too small for an Int32.
    Value was either too large or too small for an Int32.
    at System.Convert.ToInt32(Double value)
    at System.Convert.ChangeType(Object value, Type conversionType, IFormatProvider provider)
    at System.Xml.Xsl.Runtime.XmlQueryRuntime.ChangeTypeXsltArgument(XmlQueryType xmlType, Object value, Type destinationType)
    at System.Xml.Xsl.Runtime.XmlQueryContext.InvokeXsltLateBoundFunction(String name, String namespaceUri, IList`1[] args)
    at System.Xml.Xsl.CompiledQuery.Query.<xsl:template match="/">(XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}runtime, XPathNavigator {urn:schemas-microsoft-com:xslt-debug}current, Double {urn:schemas-microsoft-com:xslt-debug}position, Double {urn:schemas-microsoft-com:xslt-debug}last, IList`1 {urn:schemas-microsoft-com:xslt-debug}namespaces) in REDACTED\xslt\placeEventImage.xslt:line 19
    at System.Xml.Xsl.CompiledQuery.Query.<xsl:apply-templates>(XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}runtime, XPathNavigator , Double , Double )
    at System.Xml.Xsl.CompiledQuery.Query.Root(XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}runtime)
    at System.Xml.Xsl.CompiledQuery.Query.Execute(XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}runtime)
    at System.Xml.Xsl.XmlILCommand.Execute(Object defaultDocument, XmlResolver dataSources, XsltArgumentList argumentList, XmlWriter writer, Boolean closeWriter)
    at System.Xml.Xsl.XmlILCommand.Execute(IXPathNavigable contextDocument, XmlResolver dataSources, XsltArgumentList argumentList, XmlWriter results)
    at System.Xml.Xsl.XslCompiledTransform.Transform(IXPathNavigable input, XsltArgumentList arguments, TextWriter results)
    at umbraco.macro.GetXsltTransformResult(XmlDocument macroXML, XslCompiledTransform xslt, Dictionary`2 parameters)
    at umbraco.macro.GetXsltTransformResult(XmlDocument macroXML, XslCompiledTransform xslt)
    at umbraco.macro.loadMacroXSLT(macro macro, Hashtable attributes, Hashtable pageElements) 0.0392745446697835 0.000782
    item Start parsing 'pageTitle' 0.0412535671433101 0.001979
    item Done parsing 'pageTitle' 0.0413264814382834 0.000073
    item Start parsing 'eventStartDateTime' 0.0413664306497055 0.000040
    item Done parsing 'eventStartDateTime' 0.0414097322425057 0.000043
    item Start parsing 'eventStartDateTime' 0.0414482846283536 0.000039
    item Done parsing 'eventStartDateTime' 0.0414904687606944 0.000042
    item Start parsing 'eventLocationName' 0.041526227495394 0.000036
    item Done parsing 'eventLocationName' 0.0415706465486535 0.000044
    item Start parsing 'eventLocationAddress' 0.0416058465531234 0.000035
    item Done parsing 'eventLocationAddress' 0.0416474719552345 0.000042
    umbracoMacro Macro loaded from cache (ID: 26, Events Ical Export Single Link) 0.0416952433898722 0.000048
    renderMacro Rendering started (macro: Events Ical Export Single Link, type: 1, cacheRate: 0) 0.0417265322827343 0.000031
    umbracoMacro Before adding extensions 0.0417910656242623 0.000065
    umbracoXsltExtension Extension added: urn:Exslt.ExsltCommon, ExsltCommon 0.0421992180570436 0.000408
    umbracoXsltExtension Extension added: urn:Exslt.ExsltDatesAndTimes, ExsltDatesAndTimes 0.0422305069499056 0.000031
    umbracoXsltExtension Extension added: urn:Exslt.ExsltMath, ExsltMath 0.0422576053660451 0.000027
    umbracoXsltExtension Extension added: urn:Exslt.ExsltRegularExpressions, ExsltRegularExpressions 0.0422916879100556 0.000034
    umbracoXsltExtension Extension added: urn:Exslt.ExsltStrings, ExsltStrings 0.0423179482308506 0.000026
    umbracoXsltExtension Extension added: urn:Exslt.ExsltSets, ExsltSets 0.0423467228376791 0.000029
    umbracoMacro After adding extensions 0.042371306967785 0.000025
    umbracoMacro Before performing transformation 0.0424093006234033 0.000038
    umbracoMacro After performing transformation 0.0427512435239674 0.000342
    item Start parsing 'eventDetails' 0.0427967800376864 0.000046
    item Done parsing 'eventDetails' 0.0428453895676685 0.000049
    umbracoMacro Macro loaded from cache (ID: 16, Skyscraper) 0.0429062911627036 0.000061
    renderMacro Rendering started (macro: Skyscraper, type: 1, cacheRate: 0) 0.04295629751826 0.000050
    umbracoMacro Before adding extensions 0.0430090975249648 0.000053
    umbracoXsltExtension Extension added: urn:Exslt.ExsltCommon, ExsltCommon 0.0433789769370129 0.000370
    umbracoXsltExtension Extension added: urn:Exslt.ExsltDatesAndTimes, ExsltDatesAndTimes 0.0434097070996453 0.000031
    umbracoXsltExtension Extension added: urn:Exslt.ExsltMath, ExsltMath 0.0434384817064739 0.000029
    umbracoXsltExtension Extension added: urn:Exslt.ExsltRegularExpressions, ExsltRegularExpressions 0.0434653007574985 0.000027
    umbracoXsltExtension Extension added: urn:Exslt.ExsltStrings, ExsltStrings 0.0434910023480638 0.000026
    umbracoXsltExtension Extension added: urn:Exslt.ExsltSets, ExsltSets 0.0435167039386291 0.000026
    umbracoMacro After adding extensions 0.0435410087036202 0.000024
    umbracoMacro Before performing transformation 0.0435753706127455 0.000034
    umbracoMacro After performing transformation 0.04372455158407 0.000149
    umbracoMacro Macro loaded from cache (ID: 1, Footer) 0.0437801452419232 0.000056
    renderMacro Rendering started (macro: Footer, type: 1, cacheRate: 0) 0.0438108754045556 0.000031
    umbracoMacro Before adding extensions 0.0438782023972321 0.000067
    umbracoXsltExtension Extension added: urn:Exslt.ExsltCommon, ExsltCommon 0.0442438913325576 0.000366
    umbracoXsltExtension Extension added: urn:Exslt.ExsltDatesAndTimes, ExsltDatesAndTimes 0.044285237369554 0.000041
    umbracoXsltExtension Extension added: urn:Exslt.ExsltMath, ExsltMath 0.0443123357856934 0.000027
    umbracoXsltExtension Extension added: urn:Exslt.ExsltRegularExpressions, ExsltRegularExpressions 0.0443388754716032 0.000027
    umbracoXsltExtension Extension added: urn:Exslt.ExsltStrings, ExsltStrings 0.0443645770621685 0.000026
    umbracoXsltExtension Extension added: urn:Exslt.ExsltSets, ExsltSets 0.0443905580178486 0.000026
    umbracoMacro After adding extensions 0.0444148627828397 0.000024
    umbracoMacro Before performing transformation 0.0444576056454102 0.000043
    umbracoMacro After performing transformation 0.0447850215600027 0.000327
    aspx.page End Init 0.0448679929991102 0.000083
    aspx.page Begin InitComplete 0.0448936945896755 0.000026
    aspx.page End InitComplete 0.0449171612593221 0.000023
    aspx.page Begin PreLoad 0.0449400691987389 0.000023
    aspx.page End PreLoad 0.044962697773041 0.000023
    aspx.page Begin Load 0.0449850469822282 0.000022
    aspx.page End Load 0.0450453898470336 0.000060
    aspx.page Begin LoadComplete 0.0450861771538003 0.000041
    aspx.page End LoadComplete 0.0451104819187914 0.000024
    aspx.page Begin PreRender 0.0451328311279786 0.000022
    aspx.page End PreRender 0.0451666343068742 0.000034
    aspx.page Begin PreRenderComplete 0.0451917771672098 0.000025
    aspx.page End PreRenderComplete 0.0452222279647274 0.000030
    aspx.page Begin SaveState 0.047464971106663 0.002243
    aspx.page End SaveState 0.0474909520623431 0.000026
    aspx.page Begin SaveStateComplete 0.04751386000176 0.000023
    aspx.page End SaveStateComplete 0.047536488576062 0.000023
    aspx.page Begin Render 0.0475588377852492 0.000022
    umbracoMacro Before adding extensions 0.052720946377263 0.005162
    umbracoXsltExtension Extension added: urn:Exslt.ExsltCommon, ExsltCommon 0.0531922353259981 0.000471
    umbracoXsltExtension Extension added: urn:Exslt.ExsltDatesAndTimes, ExsltDatesAndTimes 0.0532246416793196 0.000032
    umbracoXsltExtension Extension added: urn:Exslt.ExsltMath, ExsltMath 0.0532514607303442 0.000027
    umbracoXsltExtension Extension added: urn:Exslt.ExsltRegularExpressions, ExsltRegularExpressions 0.0532944829580296 0.000043
    umbracoXsltExtension Extension added: urn:Exslt.ExsltStrings, ExsltStrings 0.0533213020090542 0.000027
    umbracoXsltExtension Extension added: urn:Exslt.ExsltSets, ExsltSets 0.0533472829647343 0.000026
    umbracoMacro After adding extensions 0.0533715877297254 0.000024
    umbracoMacro Before performing transformation 0.0534162861480998 0.000045
    umbracoMacro Before adding extensions 0.0641872081507566 0.010771
    umbracoXsltExtension Extension added: urn:Exslt.ExsltCommon, ExsltCommon 0.0646224589996773 0.000435
    umbracoXsltExtension Extension added: urn:Exslt.ExsltDatesAndTimes, ExsltDatesAndTimes 0.0646707891645447 0.000048
    umbracoXsltExtension Extension added: urn:Exslt.ExsltMath, ExsltMath 0.0646990050411435 0.000028
    umbracoXsltExtension Extension added: urn:Exslt.ExsltRegularExpressions, ExsltRegularExpressions 0.0647252653619385 0.000026
    umbracoXsltExtension Extension added: urn:Exslt.ExsltStrings, ExsltStrings 0.0647599066361786 0.000035
    umbracoXsltExtension Extension added: urn:Exslt.ExsltSets, ExsltSets 0.0647858875918587 0.000026
    umbracoMacro After adding extensions 0.0648107510870795 0.000025
    umbracoMacro Before performing transformation 0.0648730495076888 0.000062
    aspx.page End Render 0.0725106123823 0.007638
    Control Tree
    Control UniqueID Type Render Size Bytes (including children) ViewState Size Bytes (excluding children) ControlState Size Bytes (excluding children)
    __Page ASP.default_aspx 7969 0 0
    ctl00 ASP.masterpages_event_master 0 0 0
    ctl00$ctl00 ASP.masterpages_master_home_master 0 0 0
    ctl00$ctl00$ctl00 ASP.umbraco_masterpages_default_master 0 0 0
    ctl00$ctl00$ctl00$ContentPlaceHolderDefault System.Web.UI.WebControls.ContentPlaceHolder 0 0 0
    ctl00$ctl00$ctl00$ContentPlaceHolderDefault$ctl13 System.Web.UI.LiteralControl 0 0 0
    ctl00$ctl00$ctl00$ContentPlaceHolderDefault$ctl00 System.Web.UI.HtmlControls.HtmlHead 0 0 0
    ctl00$ctl00$ctl00$ContentPlaceHolderDefault$ctl03 System.Web.UI.HtmlControls.HtmlTitle 0 0 0
    ctl00$ctl00$ctl00$ContentPlaceHolderDefault$ctl04 umbraco.presentation.templateControls.Item 0 0 0
    ctl00$ctl00$ctl00$ContentPlaceHolderDefault$ctl04$ctl00 System.Web.UI.LiteralControl 0 0 0
    ctl00$ctl00$ctl00$ContentPlaceHolderDefault$ctl05 System.Web.UI.HtmlControls.HtmlMeta 0 0 0
    ctl00$ctl00$ctl00$ContentPlaceHolderDefault$ctl06 umbraco.presentation.templateControls.Item 0 0 0
    ctl00$ctl00$ctl00$ContentPlaceHolderDefault$ctl06$ctl00 System.Web.UI.LiteralControl 0 0 0
    ctl00$ctl00$ctl00$ContentPlaceHolderDefault$ctl07 umbraco.presentation.templateControls.Item 0 0 0
    ctl00$ctl00$ctl00$ContentPlaceHolderDefault$ctl07$ctl00 System.Web.UI.LiteralControl 0 0 0
    ctl00$ctl00$ctl00$ContentPlaceHolderDefault$ctl14 System.Web.UI.LiteralControl 0 0 0
    ctl00$ctl00$ctl00$ContentPlaceHolderDefault$ctl08 System.Web.UI.HtmlControls.HtmlLink 0 0 0
    ctl00$ctl00$ctl00$ContentPlaceHolderDefault$ctl09 System.Web.UI.HtmlControls.HtmlLink 0 0 0
    ctl00$ctl00$ctl00$ContentPlaceHolderDefault$ctl10 System.Web.UI.HtmlControls.HtmlLink 0 0 0
    ctl00$ctl00$ctl00$ContentPlaceHolderDefault$ctl15 System.Web.UI.ResourceBasedLiteralControl 0 0 0
    ctl00$ctl00$ctl00$ContentPlaceHolderDefault$jqmin System.Web.UI.HtmlControls.HtmlGenericControl 0 0 0
    ctl00$ctl00$ctl00$ContentPlaceHolderDefault$jqcustommin System.Web.UI.HtmlControls.HtmlGenericControl 0 0 0
    ctl00$ctl00$ctl00$ContentPlaceHolderDefault$jqfunctions System.Web.UI.HtmlControls.HtmlGenericControl 0 0 0
    ctl00$ctl00$ctl00$ContentPlaceHolderDefault$jqcfsjs System.Web.UI.HtmlControls.HtmlGenericControl 0 0 0
    ctl00$ctl00$ctl00$ContentPlaceHolderDefault$ctl16 System.Web.UI.LiteralControl 0 0 0
    ctl00$ctl00$ctl00$ContentPlaceHolderDefault$javascriptContent System.Web.UI.WebControls.ContentPlaceHolder 0 0 0
    ctl00$ctl00$ctl00$ContentPlaceHolderDefault$javascriptContent$ctl04 System.Web.UI.LiteralControl 0 0 0
    ctl00$ctl00$ctl00$ContentPlaceHolderDefault$javascriptContent$ctl00 umbraco.presentation.templateControls.Macro 0 0 0
    ctl00$ctl00$ctl00$ContentPlaceHolderDefault$javascriptContent$ctl02 System.Web.UI.WebControls.PlaceHolder 0 0 0
    ctl00$ctl00$ctl00$ContentPlaceHolderDefault$javascriptContent$ctl05 System.Web.UI.LiteralControl 0 0 0
    ctl00$ctl00$ctl00$ContentPlaceHolderDefault$javascriptContent$ctl01 umbraco.presentation.templateControls.Macro 0 0 0
    ctl00$ctl00$ctl00$ContentPlaceHolderDefault$javascriptContent$ctl03 System.Web.UI.WebControls.PlaceHolder 0 0 0
    ctl00$ctl00$ctl00$ContentPlaceHolderDefault$javascriptContent$ctl06 System.Web.UI.LiteralControl 0 0 0
    ctl00$ctl00$ctl00$ContentPlaceHolderDefault$ctl17 System.Web.UI.LiteralControl 0 0 0
    ctl00$ctl00$ctl00$ContentPlaceHolderDefault$menuOverlayContent System.Web.UI.WebControls.ContentPlaceHolder 0 0 0
    ctl00$ctl00$ctl00$ContentPlaceHolderDefault$menuOverlayContent$ctl00 System.Web.UI.LiteralControl 0 0 0
    ctl00$ctl00$ctl00$ContentPlaceHolderDefault$ctl18 System.Web.UI.LiteralControl 0 0 0
    ctl00$ctl00$ctl00$ContentPlaceHolderDefault$mallGuideContent System.Web.UI.WebControls.ContentPlaceHolder 0 0 0
    ctl00$ctl00$ctl00$ContentPlaceHolderDefault$ctl19 System.Web.UI.LiteralControl 0 0 0
    ctl00$ctl00$ctl00$ContentPlaceHolderDefault$ctl01 umbraco.presentation.templateControls.Macro 0 0 0
    ctl00$ctl00$ctl00$ContentPlaceHolderDefault$ctl11 System.Web.UI.WebControls.PlaceHolder 0 0 0
    ctl00$ctl00$ctl00$ContentPlaceHolderDefault$ctl20 System.Web.UI.LiteralControl 0 0 0
    ctl00$ctl00$ctl00$ContentPlaceHolderDefault$ctl21 System.Web.UI.ResourceBasedLiteralControl 0 0 0
    ctl00$ctl00$ctl00$ContentPlaceHolderDefault$xsltSearchContent System.Web.UI.WebControls.ContentPlaceHolder 0 0 0
    ctl00$ctl00$ctl00$ContentPlaceHolderDefault$xsltSearchContent$ctl02 System.Web.UI.LiteralControl 0 0 0
    ctl00$ctl00$ctl00$ContentPlaceHolderDefault$xsltSearchContent$ctl00 umbraco.presentation.templateControls.Macro 0 0 0
    ctl00$ctl00$ctl00$ContentPlaceHolderDefault$xsltSearchContent$ctl01 System.Web.UI.WebControls.PlaceHolder 0 0 0
    ctl00$ctl00$ctl00$ContentPlaceHolderDefault$xsltSearchContent$ctl03 System.Web.UI.LiteralControl 0 0 0
    ctl00$ctl00$ctl00$ContentPlaceHolderDefault$xsltSearchContent$ctl04 System.Web.UI.LiteralControl 0 0 0
    ctl00$ctl00$ctl00$ContentPlaceHolderDefault$ctl22 System.Web.UI.LiteralControl 0 0 0
    ctl00$ctl00$ctl00$ContentPlaceHolderDefault$pageContent System.Web.UI.WebControls.ContentPlaceHolder 0 0 0
    ctl00$ctl00$ctl00$ContentPlaceHolderDefault$pageContent$ctl11 System.Web.UI.LiteralControl 0 0 0
    ctl00$ctl00$ctl00$ContentPlaceHolderDefault$pageContent$ctl00 umbraco.presentation.templateControls.Macro 0 0 0
    ctl00$ctl00$ctl00$ContentPlaceHolderDefault$pageContent$ctl12 System.Web.UI.LiteralControl 0 0 0
    ctl00$ctl00$ctl00$ContentPlaceHolderDefault$pageContent$ctl13 System.Web.UI.LiteralControl 0 0 0
    ctl00$ctl00$ctl00$ContentPlaceHolderDefault$pageContent$ctl01 umbraco.presentation.templateControls.Item 0 0 0
    ctl00$ctl00$ctl00$ContentPlaceHolderDefault$pageContent$ctl01$ctl00 System.Web.UI.LiteralControl 0 0 0
    ctl00$ctl00$ctl00$ContentPlaceHolderDefault$pageContent$ctl14 System.Web.UI.LiteralControl 0 0 0
    ctl00$ctl00$ctl00$ContentPlaceHolderDefault$pageContent$ctl02 umbraco.presentation.templateControls.Item 0 0 0
    ctl00$ctl00$ctl00$ContentPlaceHolderDefault$pageContent$ctl02$ctl00 System.Web.UI.LiteralControl 0 0 0
    ctl00$ctl00$ctl00$ContentPlaceHolderDefault$pageContent$ctl15 System.Web.UI.LiteralControl 0 0 0
    ctl00$ctl00$ctl00$ContentPlaceHolderDefault$pageContent$ctl03 umbraco.presentation.templateControls.Item 0 0 0
    ctl00$ctl00$ctl00$ContentPlaceHolderDefault$pageContent$ctl03$ctl00 System.Web.UI.LiteralControl 0 0 0
    ctl00$ctl00$ctl00$ContentPlaceHolderDefault$pageContent$ctl16 System.Web.UI.LiteralControl 0 0 0
    ctl00$ctl00$ctl00$ContentPlaceHolderDefault$pageContent$ctl04 umbraco.presentation.templateControls.Item 0 0 0
    ctl00$ctl00$ctl00$ContentPlaceHolderDefault$pageContent$ctl04$ctl00 System.Web.UI.LiteralControl 0 0 0
    ctl00$ctl00$ctl00$ContentPlaceHolderDefault$pageContent$ctl17 System.Web.UI.LiteralControl 0 0 0
    ctl00$ctl00$ctl00$ContentPlaceHolderDefault$pageContent$ctl05 umbraco.presentation.templateControls.Item 0 0 0
    ctl00$ctl00$ctl00$ContentPlaceHolderDefault$pageContent$ctl05$ctl00 System.Web.UI.LiteralControl 0 0 0
    ctl00$ctl00$ctl00$ContentPlaceHolderDefault$pageContent$ctl18 System.Web.UI.LiteralControl 0 0 0
    ctl00$ctl00$ctl00$ContentPlaceHolderDefault$pageContent$ctl06 umbraco.presentation.templateControls.Macro 0 0 0
    ctl00$ctl00$ctl00$ContentPlaceHolderDefault$pageContent$ctl09 System.Web.UI.WebControls.PlaceHolder 0 0 0
    ctl00$ctl00$ctl00$ContentPlaceHolderDefault$pageContent$ctl19 System.Web.UI.LiteralControl 0 0 0
    ctl00$ctl00$ctl00$ContentPlaceHolderDefault$pageContent$ctl20 System.Web.UI.LiteralControl 0 0 0
    ctl00$ctl00$ctl00$ContentPlaceHolderDefault$pageContent$ctl07 umbraco.presentation.templateControls.Item 0 0 0
    ctl00$ctl00$ctl00$ContentPlaceHolderDefault$pageContent$ctl07$ctl00 System.Web.UI.LiteralControl 0 0 0
    ctl00$ctl00$ctl00$ContentPlaceHolderDefault$pageContent$ctl21 System.Web.UI.LiteralControl 0 0 0
    ctl00$ctl00$ctl00$ContentPlaceHolderDefault$pageContent$ctl08 umbraco.presentation.templateControls.Macro 0 0 0
    ctl00$ctl00$ctl00$ContentPlaceHolderDefault$pageContent$ctl10 System.Web.UI.WebControls.PlaceHolder 0 0 0
    ctl00$ctl00$ctl00$ContentPlaceHolderDefault$pageContent$ctl22 System.Web.UI.LiteralControl 0 0 0
    ctl00$ctl00$ctl00$ContentPlaceHolderDefault$pageContent$ctl23 System.Web.UI.LiteralControl 0 0 0
    ctl00$ctl00$ctl00$ContentPlaceHolderDefault$ctl23 System.Web.UI.LiteralControl 0 0 0
    ctl00$ctl00$ctl00$ContentPlaceHolderDefault$ctl02 umbraco.presentation.templateControls.Macro 0 0 0
    ctl00$ctl00$ctl00$ContentPlaceHolderDefault$ctl12 System.Web.UI.WebControls.PlaceHolder 0 0 0
    ctl00$ctl00$ctl00$ContentPlaceHolderDefault$ctl24 System.Web.UI.LiteralControl 0 0 0
    ctl00$ctl00$ctl00$ContentPlaceHolderDefault$ctl25 System.Web.UI.LiteralControl 0 0 0
    Session State
    Session Key Type Value
    Application State
    Application Key Type Value
    umbracoUrl System.String REDACTED:80/umbraco
    umbracoNeedConfiguration System.Boolean False
    Request Cookies Collection
    Name Value Size
    __utma 39115367.332910764.1279817374.1280937424.1282651749.9 60
    __utmz (39115367.1282651924.9.4.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=REDACTED) 94
    ASP.NET_SessionId qwxm1v45nestjo45s1r3pueu 42
    Response Cookies Collection
    Name Value Size
    Headers Collection
    Name Value
    Connection keep-alive
    Keep-Alive 115
    Accept text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
    Accept-Charset ISO-8859-1,utf-8;q=0.7,*;q=0.7
    Accept-Encoding gzip,deflate
    Accept-Language en-us,en;q=0.5
    Cookie __utma=39115367.332910764.1279817374.1280937424.1282651749.9; __utmz=39115367.1282651924.9.4.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=REDACTED; ASP.NET_SessionId=qwxm1v45nestjo45s1r3pueu
    Host REDACTED
    User-Agent Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.12) Gecko/20101026 Firefox/3.6.12 GTB7.1
    Response Headers Collection
    Name Value
    X-AspNet-Version 2.0.50727
    Cache-Control private
    Content-Type text/html
    Form Collection
    Name Value
    Querystring Collection
    Name Value
    umbdebugshowtrace true
    Server Variables
    Name Value
    ALL_HTTP HTTP_CONNECTION:keep-alive HTTP_KEEP_ALIVE:115 HTTP_ACCEPT:text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 HTTP_ACCEPT_CHARSET:ISO-8859-1,utf-8;q=0.7,*;q=0.7 HTTP_ACCEPT_ENCODING:gzip,deflate HTTP_ACCEPT_LANGUAGE:en-us,en;q=0.5 HTTP_COOKIE:__utma=39115367.332910764.1279817374.1280937424.1282651749.9; __utmz=39115367.1282651924.9.4.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=REDACTED; ASP.NET_SessionId=qwxm1v45nestjo45s1r3pueu HTTP_HOST:REDACTED HTTP_USER_AGENT:Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.12) Gecko/20101026 Firefox/3.6.12 GTB7.1
    ALL_RAW Connection: keep-alive Keep-Alive: 115 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Accept-Encoding: gzip,deflate Accept-Language: en-us,en;q=0.5 Cookie: __utma=39115367.332910764.1279817374.1280937424.1282651749.9; __utmz=39115367.1282651924.9.4.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=REDACTED; ASP.NET_SessionId=qwxm1v45nestjo45s1r3pueu Host: REDACTED User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.12) Gecko/20101026 Firefox/3.6.12 GTB7.1
    APPL_MD_PATH /LM/W3SVC/11/ROOT
    APPL_PHYSICAL_PATH REDACTED
    AUTH_TYPE
    AUTH_USER
    AUTH_PASSWORD
    LOGON_USER
    REMOTE_USER
    CERT_COOKIE
    CERT_FLAGS
    CERT_ISSUER
    CERT_KEYSIZE
    CERT_SECRETKEYSIZE
    CERT_SERIALNUMBER
    CERT_SERVER_ISSUER
    CERT_SERVER_SUBJECT
    CERT_SUBJECT
    CONTENT_LENGTH 0
    CONTENT_TYPE
    GATEWAY_INTERFACE CGI/1.1
    HTTPS off
    HTTPS_KEYSIZE
    HTTPS_SECRETKEYSIZE
    HTTPS_SERVER_ISSUER
    HTTPS_SERVER_SUBJECT
    INSTANCE_ID 11
    INSTANCE_META_PATH /LM/W3SVC/11
    LOCAL_ADDR REDACTED
    PATH_INFO /default.aspx
    PATH_TRANSLATED REDACTED\default.aspx
    QUERY_STRING umbdebugshowtrace=true
    REMOTE_ADDR 86.167.22.1
    REMOTE_HOST 86.167.22.1
    REMOTE_PORT 53708
    REQUEST_METHOD GET
    SCRIPT_NAME /default.aspx
    SERVER_NAME REDACTED
    SERVER_PORT 80
    SERVER_PORT_SECURE 0
    SERVER_PROTOCOL HTTP/1.1
    SERVER_SOFTWARE Microsoft-IIS/7.5
    URL /default.aspx
    HTTP_CONNECTION keep-alive
    HTTP_KEEP_ALIVE 115
    HTTP_ACCEPT text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
    HTTP_ACCEPT_CHARSET ISO-8859-1,utf-8;q=0.7,*;q=0.7
    HTTP_ACCEPT_ENCODING gzip,deflate
    HTTP_ACCEPT_LANGUAGE en-us,en;q=0.5
    HTTP_COOKIE __utma=39115367.332910764.1279817374.1280937424.1282651749.9; __utmz=39115367.1282651924.9.4.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=REDACTED; ASP.NET_SessionId=qwxm1v45nestjo45s1r3pueu
    HTTP_HOST REDACTED
    HTTP_USER_AGENT Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.12) Gecko/20101026 Firefox/3.6.12 GTB7.1
    Microsoft .NET Framework Version:2.0.50727.4952; ASP.NET Version:2.0.50727.4955
  • Kim Andersen 1447 posts 2196 karma points MVP
    Dec 13, 2010 @ 00:43
    Kim Andersen
    0

    Ohh, I meant the xslt code from the placeEventImage.xslt-file. Not the stack trace output :)

    /Kim A

  • Robin Nicholl 137 posts 277 karma points
    Dec 13, 2010 @ 00:52
    Robin Nicholl
    0

    Hmmm… I did think that was a rather larg chunk of data!

    <?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"
      exclude-result-prefixes="msxml umbraco.library Exslt.ExsltCommon Exslt.ExsltDatesAndTimes Exslt.ExsltMath Exslt.ExsltRegularExpressions Exslt.ExsltStrings Exslt.ExsltSets ">


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

    <xsl:param name="currentPage"/>

    <xsl:template match="/">
       
      <xsl:choose>
        <xsl:when test="$currentPage/alternateEventImage != ''">
           <xsl:variable name="img" select="umbraco.library:GetMedia($currentPage/alternateEventImage,0)" />
           <img src="{$img/umbracoFile}" alt="{$img/@nodeName}" title="{$img/@nodeName}" />
        </xsl:when>
        <xsl:otherwise>
           <xsl:variable name="img" select="umbraco.library:GetMedia($currentPage/eventImage,0)" />
           <img src="{$img/umbracoFile}" alt="{$img/@nodeName}" title="{$img/@nodeName}" />
        </xsl:otherwise>
      </xsl:choose>
     
    </xsl:template>

    </xsl:stylesheet>
  • Kim Andersen 1447 posts 2196 karma points MVP
    Dec 13, 2010 @ 00:57
    Kim Andersen
    0

    Okay, so you haven't got any other code in the file. Just wanted to check that to see if it could be something else that caused the error. I guess that the page that get's the error has a value in the "alternateEventImage"-field right?

    And just to be sure, the choosen image in that field, is it still available in the media section? It hasn't been deleted or something like that?

    /Kim A

  • Kim Andersen 1447 posts 2196 karma points MVP
    Dec 13, 2010 @ 01:10
    Kim Andersen
    0

    Actually Robin, could you try outcommenting the entire <xsl:choose>, and just render the content of the alternateEventImage-field (if this field is not empty of course), like this:

    <xsl:value-of select="$currentPage/alternateEventImage" />

    Then we should be able to see if this value is messed up, or at least give us a clue about it I hope :)

    What's the value?

    /Kim A

  • Kim Andersen 1447 posts 2196 karma points MVP
    Dec 13, 2010 @ 02:10
    Kim Andersen
    0

    One thing that just came to my mind when I thought about this problem was, are we at all talking about a media picker? The two properties on your page (alternateEventImage and eventImage) are they of the type "Media picker"?

    Or are you using another data type for these two fields? Like eg. the "Upload"-type maybe?

    If you are usign the upload data type we do not need to use the xslt extension, but you can just do like this:

    <xsl:choose>
       
    <xsl:when test="$currentPage/alternateEventImage != ''">
           
    <img src="{$currentPage/alternateEventImage}" alt="{$currentPage/@nodeName}" title="{$currentPage/@nodeName}" />
       
    </xsl:when>
       
    <xsl:when test="$currentPage/eventImage != ''">
    <img src="{$currentPage/eventImage}" alt="{$currentPage/@nodeName}" title="{$currentPage/@nodeName}" />
       
    </xsl:when>
    </xsl:choose>

    It was just a thought, and maybe I'm totally off here, but just wanted to make sure which data type you are using.

    /Kim A

  • Robin Nicholl 137 posts 277 karma points
    Dec 16, 2010 @ 21:03
    Robin Nicholl
    0

    Hi Kim

    I did port s reply to this the other day, but it didn't seem to post properly.

    I was using Upload rather than Media Picker, which I don't think I'd have much use for.

    Thanks for soling this for me, and I'm sorry if I've wasted your time with something that ended up being so straightforward: I guess I'll have to learn to be much more specific.

    Robin

  • Kim Andersen 1447 posts 2196 karma points MVP
    Dec 16, 2010 @ 23:05
    Kim Andersen
    0

    No worries Robin. I'm glad you got it solved. Usually I use the media picker, and I don't know why, but I just supposed that you did too :)

    Anyway, now you have the solution when using either the media picker or the upload data type :)

    /Kim A

Please Sign in or register to post replies

Write your reply to:

Draft