[XSL-LIST Mailing List Archive Home]
[Reply To This Message]
Re: union vs. "or" vs. contains?
Subject: Re: union vs. "or" vs. contains?|
From: Robert Koberg <rob@xxxxxxxxxx>
Date: Wed, 20 Oct 2004 16:23:13 -0700
Wendell Piez wrote:
At 12:05 PM 10/20/2004, Rob wrote:
Sure. You can use the XmlProperty task to load properties from a well
formed props-like file:
Wendell Piez wrote:
Whatever I do, I want to keep processing completely controlled by
the configuration file.
Maybe someone on this list who knows Ant better than I do (it's on my
list!) can comment on how Ant (a Java build framework) could query a
configuration file to determine which stylesheet to call when a job
is invoked. A poor man's version of the same (though of course Ant is
free) could use a batch file to run a transform on your config file,
to create another batch file (in which the delegation could be
managed), and then execute it. In other words, these things can be done.
I haven't followed this thread too closely but in ant you can use
'input' to allow the user to enter data at the command line. For example:
message="Enter an XSL file name:"
Ah, that's nice.
I presume it also wouldn't be hard to get a value for xsl.name by
querying into an XML config document?
which is roughly equivalent to this Java property file:
root.properties.foo = bar.xsl
Of course, you could also load the config into the transformation to
find the XSL template name to call.
Or you could transform the config file to an ant build file. You can
also use/create an XMLCatalog for custom resolution. You can also use a
validate task to ensure your content is valid according to some schema.
Ant is wonderful :)
or simply doing some kind of
conditional testing to provide for a mapping of labels to stylesheets,
scripting language that can be brought into ant (but it is kind of like
using extensions in XSL).
message="Which format would you like?"
sure -- much more user friendly :)
Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx
Mulberry Technologies, Inc. http://www.mulberrytech.com
17 West Jefferson Street Direct Phone: 301/315-9635
Suite 207 Phone: 301/315-9631
Rockville, MD 20850 Fax: 301/315-8285
Mulberry Technologies: A Consultancy Specializing in SGML and XML
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format