On Thu, Aug 30, 2012 at 11:22 PM, Demian Hess <
he...@avalonconsult.com> wrote:
>
> Yes, that seems perfectly reasonable. It would be easy enough to create a
> fake in memory SAX source that we feed to the parser. Saves the pain of
> making those stubby driver XML files.
>
> I'm leery of hard coding the -dtddocumentor , -schematronator, etc. into
> the app. I prefer getting the "meta" xml representing the DTD so that I can
> manipulate it myself and feed it into other processes. Or having the option
> to specify an XSL that should be applied immediately by the app.
I wasn't suggesting hardcoding those tools' functionality into the Java app.
I'm suggesting that we write shell scripts for those, and include them in
the scripts directory. The "dtdanalyzer" itself is a shell script. I realize
now you were probably thrown off because I used hyphens for bullets,
and maybe it made them look like command-line options.
>
> Code there be a -xsl option that lets you apply the XSL and send to -out
> location you specify? Plus a -meta option (or something like that) that
> generates just the XML and sends to the -out location?
I don't understand you exactly. I'm suggesting that the output of the tool
always goes either to the output you specify, or to stdout, if you don't
specify anything. If you give --xslt <xsl file>, then it will first pipe its
normal output through the given XSLT (as it does now) and then write
it to the output file or to stdout. I don't understand what this "--meta"
would do.