From: Noam P. <npo...@us...> - 2010-11-26 23:27:58
|
André Kaplan <ak...@la...> writes: > Hi all, > > I've put an "enhanced" xml select version in the 'enhanced_select' > branch. > > The most useful switches to me currently are --var, --key and -- > choose/--when/--otherwise. But --import might be useful also. > The --function/--param/--call-template/--with-param needs some > thinking since it's too verbose to my taste. > > I use variables mostly for clarity, and since they can hold nodesets, > it makes it easier to collect data from several places in an xml > document (or even several times from the same place). Is it worth adding all these options? Your example shell commands look like XSL with shorter tags (<tagname></tagname> becomes --tagname or -t). > > Here's a little script which dumps the structure of an XML document > and demonsrates the use of --var and --choose/--when/--otherwise > switches. I couldn't get this one to work. I got a whole bunch of warnings like: warning: failed to load external entity "b" warning: failed to load external entity "--when" Noam |