[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: [XSL] XSL Browser Integration

Subject: RE: [XSL] XSL Browser Integration
From: Robert Koberg <rob@xxxxxxxxxx>
Date: Thu, 13 Sep 2007 17:53:04 -0400
RE:  [XSL] XSL Browser Integration
On Thu, 2007-09-13 at 16:28 -0500, Scott Trenda wrote:
> Just to check, is it at all possible to pass parameters to a transform
> initiated through a <?xml-stylesheet?> PI at the top of an XML document?
> I was curious about this some time ago; it seemed logical to me at the
> time that URL parameters to an XML document should be available to the
> stylesheet.

It does seem like an obvious thing, but the answer is that it is not
possible. It would also be nice if you could use the javascript
protocol, like document("javascript:makeXml()"), but nope.

You could do something like using the document function to pull in a
specific XML (static file or dynamic service from the server) that
contains the parameters.

best,
-Rob

> 
> ~ Scott
> 
> 
> -----Original Message-----
> From: Robert Koberg [mailto:rob@xxxxxxxxxx] 
> Sent: Thursday, September 13, 2007 3:08 PM
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: Re:  [XSL] XSL Browser Integration
> 
> On Thu, 2007-09-13 at 21:01 +0200, Alain wrote:
> > Is there a normalised way, on a browser environment (eq. XSLT1.0) to 
> > access with XSL code:
> > - the full "current" URI (ex. : 
> > http://www.myserver.com/mydir/foo.xml?x=12&y=15  the most interesting 
> > part being obviously the option string, here: x=12&y=15)
> > - users preferences such as : preferred languages (or the http header 
> > accept_language string, for internationalisation purpose)
> > - navigation items such as : referrer, history (tainted)
> > - computer environment : screen resolution, colour width, OS, browser,
> 
> > initial canvas size, etc...
> 
> Getting the data with JavaScript and passing parameters to the
> transform.
> 
> best,
> -Rob

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.