Hi Sergy
As usual you have come through with the correct solution. In my testing, this code you have below works with the FFC class of VFP9 SP2 with one exception:
This line:
<xsl:when test="string-length(@href) > 0">
needs to be changed to this:
<xsl:when test="string-length(@href) > 0">
So use > instead of the greater than sign >
Thank you immensely for this solution which I would never have found in a thousand years.
Bernard
>Hi Bernard,
>
>The default XSLT used by HTMLListener in SP2 is missing a piece that adds an anchor tag to the HTML if there's an HREF attribute. To fix the problem, add missing translation in the GetDefaultUserXSLTAsString method of HTMLListener class
>
><!--------- Add this --------- -->
><xsl:when test="string-length(@href) > 0">
> <A href="{@href}">
> <xsl:call-template name="replaceText"/>
> </A>
></xsl:when>
>
><!-------------- Before this ---------- -->
> <xsl:otherwise>
> <xsl:call-template name="replaceText"/>
> </xsl:otherwise>
> </xsl:choose>
>
>
>>Changes to the code in FFC\_reportlistener.vcx breaks SP1 reports
>>
>>Doug Henning did an excellent article -
http://msdn2.microsoft.com/en-us/library/ms947688.aspx about Hyperlinking Reports. I have implemented this in a number of reports. With the SP2 version of _reportlistener.vcx class there are no Hyperlinks appearing in the reports. Yet with the SP1 version of the same class and the same code everything still works perfectly.
>>
>>This is the second difference I know of that has broken
working Sp1 code.
>>
>>Does anyone know of a fix for this?