Marin County Free Library
-Original Message-
From: Code for Libraries [mailto:code4...@listserv.nd.edu] On Behalf Of
Doran, Michael D
Sent: Friday, June 19, 2009 2:53 PM
To: CODE4LIB@LISTSERV.ND.EDU
Subject: Re: [CODE4LIB] How to access environment variables in XSL
Hi Dave
I am working with some XSL pages that serve up HTML on the web. I'm new to
XSL. In my prior web development, I was accustomed to being able to access
environment variables (and their values, natch) in my CGI scripts and/or via
Server Side Includes. Is there an equivalent mechanism for
There is no way to do that inherent to XSL. There _might_ be a way to
do that in the particular environment you are processing your XML.
Which I guess is a Java XSL processor? I'd reccommend finding the
listserv for the Java XSL processor you're using, and asking there.
There might not be a
] On Behalf Of Doran, Michael
D [do...@uta.edu]
Sent: Friday, June 19, 2009 12:44 PM
To: CODE4LIB@LISTSERV.ND.EDU
Subject: [CODE4LIB] How to access environment variables in XSL
I am working with some XSL pages that serve up HTML on the web. I'm new to
XSL. In my prior web development, I was accustomed
The low tech way to accomplish this is to use PERL to create the XSLT
on the fly. You can just jam the values directly in or define an
xsl:variable
kyle
On Fri, Jun 19, 2009 at 12:44 PM, Doran, Michael Ddo...@uta.edu wrote:
I am working with some XSL pages that serve up HTML on the web. I'm
If you are using some sort of XSL processor in a programming language (java,
php, ruby) you can assign a variable to the xsl file and use the variable
in the file much like you would in any other scripting environment.
You can also go one step ahead and use XQuery which gives you the ability to
Hi Michael,
Only have time for a quick response. Like Jonathan Rochkind said,
there's not really a built in way into XSL to refer to these things
like some other languages. The reason is typically the XSL processor
is used by some other language/system to transform a stylesheet, not
connected
Kinda the point of XSL is simply transforming XML as input into
something (html, xml, or other) as output.
The right way to do this, if you have any control over what's
generating the XML that is input to your XSL, is to have relevant (or
all) environmental variables included in the XML
Depending on how you're using the XSL, Cocoon-XQuery-XSL is one option -
although I don't know how Xquery would get access to your environment
variables directly. But you could use XQuery to stream the values into the
source XML as nodes just like the rest of your data, then deal with them how
, 2009 2:48 PM
To: CODE4LIB@LISTSERV.ND.EDU
Subject: Re: [CODE4LIB] How to access environment variables in XSL
Micahael,
What XSLT processor and programming language are you using?
--Dave
==
David Walker
Library Web Services Manager
California State University
http
] On
Behalf Of Walker, David
Sent: Friday, June 19, 2009 2:48 PM
To: CODE4LIB@LISTSERV.ND.EDU
Subject: Re: [CODE4LIB] How to access environment variables in XSL
Micahael,
What XSLT processor and programming language are you using?
--Dave
==
David Walker
Library Web Services
From: Code for Libraries [code4...@listserv.nd.edu] On Behalf
Of Doran, Michael D [do...@uta.edu]
Sent: Friday, June 19, 2009 12:44 PM
To: CODE4LIB@LISTSERV.ND.EDU
Subject: [CODE4LIB] How to access environment variables in XSL
I am working with some XSL pages
12 matches
Mail list logo