[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Applying style sheet to xml obtained via URL
On 09.08.2016 15:37, Michele R Combs mrrothen@xxxxxxx wrote:
I have a URL that returns an xml file from our library catalog (for example, http://summit.syr.edu:7014/vxws/GetHoldingsService?bibId=2257667) . I want to set up a simple form where someone can enter the URL (actually I just want them to enter the BIBID -- those last 7 numbers -- then I'll construct the full URL), then click "submit" to display the XML with a specified XSL style sheet applied to it. Is there an easy way to do this? So you want to perform the XSLT transformation in the user's browser with Javascript? Which browsers do you want that to work with? Are you aware of the same origin policy (https://en.wikipedia.org/wiki/Same-origin_policy) that client-side script is subjected to when loading XML? Basically the HTML with the script will need to come from the same origin as your XML. Are you going to serve your HTML with the script from the same server as the XML given above?
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|