W3C home > Mailing lists > Public > xproc-dev@w3.org > May 2009

Re: xproc use case, demonstrator

From: Norman Walsh <ndw@nwalsh.com>
Date: Fri, 22 May 2009 09:15:50 -0400
To: XProc Dev <xproc-dev@w3.org>
Message-ID: <m2zld5l1mh.fsf@nwalsh.com>
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 22 May 2009 13:16:32 GMT