W3C home > Mailing lists > Public > xproc-dev@w3.org > December 2011

RE: XML Calabash: New option, changed XProcConfiguration constructor

From: David Lee <dlee@calldei.com>
Date: Fri, 2 Dec 2011 17:14:28 -0500
To: "'Norman Walsh'" <ndw@nwalsh.com>, "'XProc Dev'" <xproc-dev@w3.org>
Message-ID: <01b701ccb13f$c33f3fe0$49bdbfa0$@calldei.com>
Are they atleast documented ?
I'll have to update the xmlsh calabash extension to use these, and may in
fact not *know* the right value ...
Curious why do you need to know the edition ?
For xmlsh I need to know how to pass the flag into Saxon to tell it to do
schema mode or not but dont need to know the edition.  But I can query the
edition at runtime to find out what it is.  
Are you dynamically changing the classpath based on the edition ?
If not you can query the edition dynamically based on whatever the java
class loader found.

E.g. here's the code to "xversion" which prints amoung other things the
saxon edition 

http://xmlsh.svn.sourceforge.net/viewvc/xmlsh/trunk/src/commands/org/xmlsh/c
ommands/builtin/xversion.java?revision=644&view=markup

This relies on the s9api Processor.
getUnderlyingConfiguration().getEditionCode()




----------------------------------------
David A. Lee
dlee@calldei.com
http://www.xmlsh.org


-----Original Message-----
From: Norman Walsh [mailto:ndw@nwalsh.com] 
Sent: Friday, December 02, 2011 4:31 PM
To: XProc Dev
Subject: Re: XML Calabash: New option, changed XProcConfiguration
constructor

David Lee <dlee@calldei.com> writes:

> is the possible values of "edition" defined somewhere ? Like say an Enum ?

No, I didn't bother. Three strings seemed easy enough.

                                        Be seeing you,
                                          norm

-- 
Norman Walsh
Lead Engineer
MarkLogic Corporation
Phone: +1 413 624 6676
www.marklogic.com
Received on Friday, 2 December 2011 22:14:58 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 2 December 2011 22:14:59 GMT