In TeamSite(s) 7.1 and 7.2.1, we were using the value of:
<xsl:value-of select="Properties/@Admin"/>
To determine if a sitepub page was being previewed in TeamSite (this value would be true)
Or if this page was generated HTML output from a SitePublisher .page file (this value would be blank)
We believe the developer who did this for us a few years back (he's on longer working with us, go figure) used this example from here: http://www.littleforest.co.uk/xsl-reference/ (its similar, but instead of geneated HTML, they are saying LiveSite runtime, which we do not use, but it worked in either case)
We are now trying to migrate to TeamSite 7.5. We are experiencing all the same issues as everyone else trying to get to TS 7.5, but this one is a real showstopper for us because this value is used across multiple components that are on thousands of pages and we don't know what to do at this point... We opened a case with autonomy but they said that since its custom code and not something out of the box, they cannot assist without involving professional services.
Does anyone know of a way in the XSLT of a Sitepub component to determine whether a page is being previewed in TeamSite VS generated HTML output? In previous versions of TeamSite, generating the HTML would give a blank/empty value for Properties/@Admin. But in TS 7.5, generating the HTML gives a value of 'true' and our code is displaying the wrong content. I know TS 7.5 is still new and not many people are using it yet, but maybe someone is doing this another way that may work in 7.5... Fingers crossed.