[Gnutaxes-dev] XML DTDs
Status: Pre-Alpha
Brought to you by:
ergofobe
|
From: Jim P. <JPh...@ma...> - 2000-01-03 22:10:11
|
Ok, I guess this is really the first message on this list intended at making
progress towards something solid. If you've seen my very basic
interview.xml document so far you'll see that as of yet there is not a
really well defined method for scripting this out. I haven't figured out
what a good method for doing this is. I'm torn between two routes.
The first route (and I think the sexiest route) is to define a scripting
language ala XSL such that we have a predefined API for handling just about
anything we might need to do. It might look something like:
<gnuTaXSL:compute-add result="field2" value1="$field1" value2="5000"/>
The above would take the value of $field1 and add 5000 filling in the
variable $field2 with the result.
Of course, implementing a parser might prove tricky (I wouldn't even know
how to begin except maybe to see how the various XSLT engines do it).
Alternatively, we could set up the XML such that we can pick and choose from
all the various scripting languages out there and so something like:
<gnuTaxes:script language="javascript">
field2 = field1 + 5000;
</gnuTaxes:script>
Suggestions?
Jim Phillips - Facilities Manager
MATRA Systems, Inc.
Phone: +1 (770) 931-0038 FAX: +1 (770) 931-0038
URL: http://www.matrasys.com/ <http://www.matrasys.com/>
E-Mail: jph...@ma... <mailto:jph...@ma...>
We can fix this, but you're gonna need a butter knife, a roll of duct tape,
and a car battery...
|