Re: xproc use case, demonstrator

Dave Pawson <dave.pawson@gmail.com> writes:

> 2009/5/22 Norman Walsh <ndw@nwalsh.com>:
>
>> Uhm...is there some reason not to use the standard Ant idioms for this?
>>
>> <project name="proptest" default="default" basedir=".">
>>  <description>Make sure properties are set.</description>
>>
>>  <condition property="got.all.properties">
>>    <and>
>>      <isset property="somethingImportant"/>
>>    </and>
>>  </condition>
>>
>>  <target name="check.properties" unless="got.all.properties">
>>    <fail message="You forgot to set some properties"/>
>>  </target>
>
> which means I have to manually find all the properties?
> Thats where the Python and xslt help out.

How many properties do you have? Surely you know the names of all of
them and you can just stick them all in the "<and>" condition?

                                        Be seeing you,
                                          norm

-- 
Norman Walsh <ndw@nwalsh.com> | All generalizations are dangerous, even
http://nwalsh.com/            | this one.--Alexandre Dumas

Received on Friday, 22 May 2009 13:16:31 UTC