Re: [CODE4LIB] Digital imaging questions

2009-06-19 Thread Jason Stirnaman
> and then write a parser (in Python or Ruby) that > will read the values from that spreadsheet and produce a dublin_core.xml Sai, That work has already been done in PHP: http://tds.terkko.helsinki.fi/utils/ I just used it for a small project. I tweaked it a tiny bit and tried to clarify the do

[CODE4LIB] Institutional identifiers in repositories

2009-06-19 Thread Michael J. Giarlo
The NISO I2 Working Group is surveying repository managers to determine the current practices and needs of the repository community regarding institutional identifiers.  We value your time and your input in the process to create a standard for a new institutional identifier. We hope that you will

Re: [CODE4LIB] Institutional identifiers in repositories

2009-06-19 Thread Karen Coyle
How do you define 'repository'? I know that's a hard question, but i'm just not sure who should answer. Is it limited to places where academics store their own works? The I2 page on the NISO site seems to be more inclusive, citing "all library and publishing environments." kc Michael J. Giarl

[CODE4LIB] How to access environment variables in XSL

2009-06-19 Thread Doran, Michael D
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 access

Re: [CODE4LIB] How to access environment variables in XSL

2009-06-19 Thread Jonathan Rochkind
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

Re: [CODE4LIB] How to access environment variables in XSL

2009-06-19 Thread Walker, David
Micahael, What XSLT processor and programming language are you using? --Dave == David Walker Library Web Services Manager California State University http://xerxes.calstate.edu From: Code for Libraries [code4...@listserv.nd.edu] On Behalf

Re: [CODE4LIB] How to access environment variables in XSL

2009-06-19 Thread Kyle Banerjee
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 kyle On Fri, Jun 19, 2009 at 12:44 PM, Doran, Michael D wrote: > I am working with some XSL pages that serve up HTML on the web.  I'm new to > XSL.   In my pri

Re: [CODE4LIB] How to access environment variables in XSL

2009-06-19 Thread Andrew Nagy
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

Re: [CODE4LIB] How to access environment variables in XSL

2009-06-19 Thread Jon Gorman
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 dir

Re: [CODE4LIB] How to access environment variables in XSL

2009-06-19 Thread Jonathan Rochkind
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 th

Re: [CODE4LIB] How to access environment variables in XSL

2009-06-19 Thread Andrew Ashton
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 y

Re: [CODE4LIB] How to access environment variables in XSL

2009-06-19 Thread Doran, Michael D
Hi Dave, > What XSLT processor and programming language are you using? I'm embarrassed to say that I'm not sure. I'm making modifications and enhancements to already existing XSL pages that are part of the framework of Ex Libris' new Voyager 7.0 OPAC. This new version of the OPAC is running u

Re: [CODE4LIB] How to access environment variables in XSL

2009-06-19 Thread Doran, Michael D
Hi Andrew, > 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. The XSL processor is (I assume) being invoked from withi

Re: [CODE4LIB] How to access environment variables in XSL

2009-06-19 Thread Jon Gorman
Try putting somewhere in one of the xslt pages Version: Vendor: Vendor URL: Jon On Fri, Jun 19, 2009 at 4:53 PM, Doran, Michael D wrote: > Hi Dave, > >> What XSLT processor and programming language are you using? > > I'm embarrassed to say that I'm not sure.  I'm making modifications and

Re: [CODE4LIB] How to access environment variables in XSL

2009-06-19 Thread Doran, Michael D
Hi Jon, > Try putting somewhere in one of the xslt pages Cool! Here's the output: Version: 1 Vendor: Apache Software Foundation Vendor URL: http://xml.apache.org/xalan-j -- Michael # Michael Doran, Systems Librarian # University of Texas at Arlington # 817-272-5326 off

Re: [CODE4LIB] Institutional identifiers in repositories

2009-06-19 Thread Michael J. Giarlo
I try to avoid defining 'repository'. Institutional repositories and subject repositories like arxiv.org are clearly 'repositories', but beyond that, you're right, it is somewhat ill-defined. One might look to the Kahn-Wilensky architecture [1], or the OAIS reference model [2], or even Wikipedia

Re: [CODE4LIB] Institutional identifiers in repositories

2009-06-19 Thread Karen Coyle
Thanks, Mike. So, to get specific, should I answer the survey for the Internet Archive? It's not academic, it's not necessarily scholarly, but it's about everything else you mention here. kc Michael J. Giarlo wrote: I try to avoid defining 'repository'. Institutional repositories and subject

Re: [CODE4LIB] Institutional identifiers in repositories

2009-06-19 Thread Michael J. Giarlo
If you've got the time and the inclination, Karen, I think that would be wonderful. Thanks a bunch! -Mike On Fri, Jun 19, 2009 at 19:32, Karen Coyle wrote: > Thanks, Mike. So, to get specific, should I answer the survey for the > Internet Archive? It's not academic, it's not necessarily schol

Re: [CODE4LIB] How to access environment variables in XSL

2009-06-19 Thread Tom Pasley
Hi, I see Michael's here too - (he's a bit of a guru on the Voyager-L listserv :-D). Michael, if you have a look at the Vendor URL, there's some info there, but you might also try having a look through some of these G.search results: site:xml.apache.org inurl:"xalan-j" "system" - see if that he

Re: [CODE4LIB] How to access environment variables in XSL

2009-06-19 Thread Godmar Back
Running in a J2EE is somewhat different from running in a CGI environment. Specifically, variables such as REMOTE_ADDR, etc. are not stored in environment variables that are easily accessible. Assuming that your XSLT is executed for each request (which, btw, is not a given since Voyager may well b