JeffNolan1900
Technical User
Hello.
I have an xslt file that processes an xml and I have use a xsl choose to conditionally format any of the properties that have the name LINK to show the path as a hyperlink. Easy enough. If the link is web related: it works fine and opens the link. If the link is C:\image.jpg it fails?
The thing is I am using an internal browser that is part of a mapping application, that I imagine accesses Internet Explorer somehow. When the link opens, it opens in a pop-up that is in Internet Explorer, but when I try and open C:\image.jpg nothing happens...nothing at all.
Here is an exceprt from the xslt code that opens the link:
Here is a sample of the xml file:
Keep in mind if I use this in regular iexplore it works fine. This is something strange I can not seem to figure out and was just wondering in anyone here had seen anything like this.
I have an xslt file that processes an xml and I have use a xsl choose to conditionally format any of the properties that have the name LINK to show the path as a hyperlink. Easy enough. If the link is web related: it works fine and opens the link. If the link is C:\image.jpg it fails?
The thing is I am using an internal browser that is part of a mapping application, that I imagine accesses Internet Explorer somehow. When the link opens, it opens in a pop-up that is in Internet Explorer, but when I try and open C:\image.jpg nothing happens...nothing at all.
Here is an exceprt from the xslt code that opens the link:
Code:
<xsl:template match="*">
<xsl:param name="tag"/>
<xsl:element name="tr">
<xsl:attribute name="{$tag}">yes</xsl:attribute>
<xsl:attribute name="class">r<xsl:value-of select="position() mod 2"/></xsl:attribute>
<xsl:attribute name="style">display:block;</xsl:attribute>
<xsl:choose>
<xsl:when test="name()='LINK'">
<td><xsl:value-of select="name()"/></td>
<td><a target="_new"><xsl:attribute name="href"><xsl:value-of select="."/></xsl:attribute></a><xsl:value-of select="."/></td>
</xsl:when>
<xsl:otherwise>
<td><xsl:value-of select="name()"/></td>
<td><xsl:value-of select="."/></td>
</xsl:otherwise>
</xsl:choose>
</xsl:element>
</xsl:template>
Here is a sample of the xml file:
Code:
<Water_Valve n="Water_Valve" i="8fc7da74-0956-4681-a787-1d4f16540cb4">
<FID type="string">11111111</FID>
<VALVE_POSI type="string">asdf</VALVE_POSI>
<VALVE_NUM type="string">afds</VALVE_NUM>
<VALVE_TYPE type="string">afdfafsd</VALVE_TYPE>
<ENABLED type="string">asdf</ENABLED>
<LINK type="string">C:\logo.jpg</LINK>
</Water_Valve>
Keep in mind if I use this in regular iexplore it works fine. This is something strange I can not seem to figure out and was just wondering in anyone here had seen anything like this.