Hi
I'm having the bizzarrest problem ever. I have an asp page which dynamically writes xml - test_xml.asp. I have an xsl page which displays the data from the xml - test.xsl. I have a third page called test.asp which parses both the xml and the xsl pages.
test_xml.asp
test.xsl:
Nothing too complicated about either of these pages. BUT! When you run test.asp the IP address shown is that of my server - as if it was looking at the Local_Addr server variable. Curiouser and curiouser - when you look at the xml produced the ip address is that of my client pc (which is what I want).
How is it possible for the xsl page to show the server ip when the xml page is giving the xsl page the client ip? Where is the xsl page getting the server ip from??? Are there little gremlins inside my computer????
Any help/suggestions much appreciated.
Beck
I'm having the bizzarrest problem ever. I have an asp page which dynamically writes xml - test_xml.asp. I have an xsl page which displays the data from the xml - test.xsl. I have a third page called test.asp which parses both the xml and the xsl pages.
test_xml.asp
Code:
<!--METADATA TYPE="typelib" FILE = "C:\Program Files\Common Files\System\ADO\msado15.dll" -->
<%@ Language=VBScript %>
<%
Option Explicit
Response.ContentType = "text/xml"
Response.Expires = 0
Response.Buffer = True
Main
Sub Main()
response.write "<?xml version='1.0'?>" & vbNewLine
response.write "<page>" & vbNewLine
response.write vbtab & "<ipaddress>"& Request.ServerVariables("remote_host") &"</ipaddress>" & vbNewLine
response.write "</page>"
End Sub
%>
test.xsl:
Code:
<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="[URL unfurl="true"]http://www.w3.org/1999/XSL/Transform">[/URL]
<xsl:output method="html"/>
<xsl:template match="/">
<html>
<head>
<title>Test</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
</head>
<body>
<xsl:value-of select="page/ipaddress"/>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
Nothing too complicated about either of these pages. BUT! When you run test.asp the IP address shown is that of my server - as if it was looking at the Local_Addr server variable. Curiouser and curiouser - when you look at the xml produced the ip address is that of my client pc (which is what I want).
How is it possible for the xsl page to show the server ip when the xml page is giving the xsl page the client ip? Where is the xsl page getting the server ip from??? Are there little gremlins inside my computer????
Any help/suggestions much appreciated.
Beck