Subject: Re: [xsl] union vs. "or" vs. contains? From: Robert Koberg <rob@xxxxxxxxxx> Date: Wed, 20 Oct 2004 16:23:13 -0700 |
At 12:05 PM 10/20/2004, Rob wrote:
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:
<input message="Enter an XSL file name:" addproperty="xsl.name"/>
<xslt in="source.xml" out="result.html" style="${xsl.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?
<root> <properties> <foo>bar.xsl</foo> </properties> </root>
or <xslt in="source.xml" out="result.html" style="${root.properties.foo}"/>
or simply doing some kind of conditional testing to provide for a mapping of labels to stylesheets,
or simply
<input message="Which format would you like?" addproperty="format"/>
<xslt in="source.xml" out="result.html" style="${format}.xsl"/>
best, -Rob
Cheers, Wendell
====================================================================== 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 ======================================================================
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] union vs. "or" vs. contai, Wendell Piez | Thread | Re: [xsl] union vs. "or" vs. contai, Bruce D'Arcus |
[xsl] Random Sort, Tom Froehlich | Date | Re: [xsl] Totalliing, Anton Triest |
Month |