Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

XSL referencing external URL

Status
Not open for further replies.

mluken

Programmer
Dec 31, 2003
54
0
0
US
I am not sure if this is the right place to put this or not. I have an XSL file, and in that file, I want to output the response from a URL:

Code:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="[URL unfurl="true"]http://www.w3.org/1999/XSL/Transform"[/URL] xmlns:fo="[URL unfurl="true"]http://www.w3.org/1999/XSL/Format">[/URL]

<xsl:template name="totalRetirementView">

<xsl:variable name="IncludeURL">
   [URL unfurl="true"]http://somesite.com[/URL]
</xsl:variable>

<p>BLAH BLAH BLAH</p>

<!-- OUTPUT RESPONSE FROM $IncludeURL HERE -->

<p>BLAH BLAH BLAH</p>
</xsl:template>

</xsl:stylesheet>

In ASP, I could use like a WinHTTP object and output the response. The reason that I need to do it this way is because earlier in the XSL, the URL is generated and I don't know it prior to this point. Any thoughts?

Thanks!
 
Not sure if this is what you are looking for or how to do it in ASP, but in Java there is an object that deals with the transformation of XML and XSLT. The object allows you to create parameters in the transformation process. So we can do a setAttribute("URL", serverURL) and in the xslt I can do a

<xsl:param select="URL"/>

Something like this. You can possibly do the same thing in ASP.


hope that helps.

jay
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top