Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XSLT
XSLT General questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old October 21st, 2003, 02:46 AM
Registered User
Join Date: Oct 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Resolving a URL using XSLT

Hi all,
      I am a beginner in XSLT. I have a client which has a browser control embedded in it. This client accepts an XML file from a server applies style sheets on it using XSLT and displays the new XSLT applied XML page in the webbrowser.
      Now the XML file which i get has has a structure as...
for eg:
           <URL> www.someURL.com </URL>
      </SOME ROOT TAG>

      The data associated with the <URL> tag is basically some URL provided by the server which gives some XML content on being requested for. Now what i wanted to know is that, is it possible in XSLT to query for the URL and then replace the url data i.e "www.someURL.com " in this case, with the XML data that is obtained at that URL. So whenever the XSLT is applied on that XML file the URL data is resolved to the XML data obtaine in response.

   say something like this :

 *************** BEFORE APPLYING STYLE SHEET *****************
           <URL> www.someURL.com </URL>
      </SOME ROOT TAG>

 *************** AFTER APPLYING STLYE SHEET *****************
                   <HEADLINES> xxxxxxx </HEADLINES>

      </SOME ROOT TAG>

  The above thing has been done by using JAXB .. But we wanted to see if it is possible by using only XSLT. Please help me out if it possible .
Thanking in Advance.
                                                - regards

Old October 21st, 2003, 03:53 AM
joefawcett's Avatar
Wrox Author
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts

You need to use the document function, it returns the root node of a document. You may need to add the protocol reference (http://) to the url.



Similar Threads
Thread Thread Starter Forum Replies Last Post
Resolving classpath with ant <xslt> task igraham XSLT 9 September 26th, 2007 03:37 PM
resolving localhost phin Internet Information Services 5 February 26th, 2007 12:34 PM
Resolving entities when reading XML dmorin C# 0 September 25th, 2006 09:19 AM
Use of url request in xslt transformation eritsatis XSLT 0 January 31st, 2006 05:31 PM
catching an URL variable in xslt Flashlight XSLT 1 August 21st, 2003 01:32 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.